Requery Sub Form

J

John Kirkman

I have a form with two sub forms. After I select another record in subform1,
I need to requery(update) the information in subform2. I am using an after
update event from subform1 to change a hidden text box on the main form
which is used as the creteria for subform2. I just don't know how to update
the second subform. Thanks for any help.

John
 
G

Guest

In your AfterUpdate event, of SubForm1, but after you update the field on the
main form, use:

SubForm2.requery

Sharkbyte
 
V

Van T. Dinh

Forms!MainForm!SubformCONTROL2.Form.Requery

Note that you must use the name of the SubformCONTROL which can be different
from the name of the Form you used as the Subform.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top