Me.EnterTheNameOfYourSubFormAsItIsSeenByTheMainForm.Requery
Click once on the subform in design view thru the main form and check what its name within the main really is. Hope this helps. Gord
ghubbell@total.net
Assuming you have 2 completely independent forms, you can reference the forms by their names Forms!FirstForm and Forms!SecondForm. This can be done inside the other form or inside independent code. No need to use 'Me'. Me is used for the current item only. For example Me.Name is the name of the current Form. If the Query in the Second Form references a field in the first form, then a .Requery will work, but so fill changing the .Filter
Heres some code that may help...
DoCmd.OpenForm "FirstForm"
DoCmd.OpenForm "SecondForm"
Forms!SecondForm.Filter = "[DueDate] = #02/19/2001#"
Forms!SecondForm.FilterOn = True
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.