G
Guest
I have the following problem.
I have a table with data of customers. I also have a table with orders. The
two tables are linked by a customer number. I designed a form with the
customer data and in the form is a subform with the orders. If I change the
customer the corresponding orders can be viewed and edited in the subform.
If I change the customer I want to go to the last record in the subform.
Therefore I wanted to use the code: DocCmd.GoToRecord acForm, "Subform Name",
acLast.
VBA gives me an error that the Subform is not opened.
How can I solve this problem.
Thanks in advance,
JeroenM.
I have a table with data of customers. I also have a table with orders. The
two tables are linked by a customer number. I designed a form with the
customer data and in the form is a subform with the orders. If I change the
customer the corresponding orders can be viewed and edited in the subform.
If I change the customer I want to go to the last record in the subform.
Therefore I wanted to use the code: DocCmd.GoToRecord acForm, "Subform Name",
acLast.
VBA gives me an error that the Subform is not opened.
How can I solve this problem.
Thanks in advance,
JeroenM.