A
Alexander Jagl
Hi everyone!
I have two problems with a subform in an adp project. (Access 2002
SP3, SQL Server 2000)
table 'customer': ID (primary key), first_name, last_name, ... (about
5000 records)
table 'order': ID (primary key), customerID, order_date, ... (about
25000 records)
Form 'f_customer' is based on a view 'v_customer'.
(SELECT ID, first_name, last_name FROM customer)
Subfrom 'f_orders' is on a view 'v_orders'.
(SELECT ID, customerID, order_date FROM order)
Child / Master link are set to customerID and ID
Problem 1:
If I open the main form the first customer and his orders are shown
correctly. Then if I jump to the last customer, the synchronisation
does not work, no orders are displayed. If I jump to record 4999 and
then again to 5000, the orders are displayed.
I tried different recordsources for the subform: A view with
child/master link, a stored procedure with an input parameter.
Problem 2:
Sometimes, not allways, if I open the form and jump to the last
record, Access quits with no error message. I have no special code in
the two forms. This happens with the view and the stored procedure.
Both erros only happen when I open the form and then jump to the last
customer record. If I jump from record 1, 2, 3 to 10 and then jump to
the last customer everything is ok.
Thanks for your help,
Alex
I have two problems with a subform in an adp project. (Access 2002
SP3, SQL Server 2000)
table 'customer': ID (primary key), first_name, last_name, ... (about
5000 records)
table 'order': ID (primary key), customerID, order_date, ... (about
25000 records)
Form 'f_customer' is based on a view 'v_customer'.
(SELECT ID, first_name, last_name FROM customer)
Subfrom 'f_orders' is on a view 'v_orders'.
(SELECT ID, customerID, order_date FROM order)
Child / Master link are set to customerID and ID
Problem 1:
If I open the main form the first customer and his orders are shown
correctly. Then if I jump to the last customer, the synchronisation
does not work, no orders are displayed. If I jump to record 4999 and
then again to 5000, the orders are displayed.
I tried different recordsources for the subform: A view with
child/master link, a stored procedure with an input parameter.
Problem 2:
Sometimes, not allways, if I open the form and jump to the last
record, Access quits with no error message. I have no special code in
the two forms. This happens with the view and the stored procedure.
Both erros only happen when I open the form and then jump to the last
customer record. If I jump from record 1, 2, 3 to 10 and then jump to
the last customer everything is ok.
Thanks for your help,
Alex