Requery a subsub form

speakers_86

Registered User.
Local time
Today, 08:52
Joined
May 17, 2007
Messages
1,919
In the on close event of a form, I would like to requery a subsub form. How can I do that?
 
Are you wanting to Requery the subform of the form being closed? Or the subform on another form?

If it is the first option, to what end do you wish to requery the subform given the main form is being closed?
 
A couple of ways:
Code:
Forms!YourMainFormNameHere.YourSubformControlNameHere.Form.YourSecondSubformControlNameHere.Form.Requery
or
Code:
Forms("MainFormNameHere").Controls("FirstSubformControlName").Form.Controls("SecondSubformControlName").Form.Requery
 
Thank you guys.

The first one is what I had. The second one is what bob told me to do and it works.

Code:
[Forms].[frmhome].[subHomeSchedulesForm].[Form].[subHomeSchedules].[Form].Requery
Forms!frmhome.subHomeSchedulesForm.Form.subHomeSchedules.Form.Requery

Its the little things.
 
Thank you guys.

The first one is what I had. The second one is what bob told me to do and it works.

Code:
[Forms].[frmhome].[subHomeSchedulesForm].[Form].[subHomeSchedules].[Form].Requery
Forms!frmhome.subHomeSchedulesForm.Form.subHomeSchedules.Form.Requery

Its the little things.

You might also check out my small tutorial on subform syntax here on my website.
 

Users who are viewing this thread

Back
Top Bottom