G
Guest
I know this must be easy but, I’m stumped.
I want to do the following things when a pop up form (thePopUp) is closed…
Requery a different sub form (theSubForm) that will be open when thePopUp is
open(got that figured out)
Set the focus of that same sub form to a new record row
So my On Close event of the pop up looks like this:
Private Sub ThePopUp_Close ()
‘This works…
Forms!theMainform!theSubForm.Requery
‘Here is where I’m having the problem…
‘This blows up…
DoCmd.GoToRecord acDataForm,
Forms!theMainform!theSubFormControl.SourceObject, acNewRec
End Sub
Any assistance is appreciated.
Thanks
Bernie
I want to do the following things when a pop up form (thePopUp) is closed…
Requery a different sub form (theSubForm) that will be open when thePopUp is
open(got that figured out)
Set the focus of that same sub form to a new record row
So my On Close event of the pop up looks like this:
Private Sub ThePopUp_Close ()
‘This works…
Forms!theMainform!theSubForm.Requery
‘Here is where I’m having the problem…
‘This blows up…
DoCmd.GoToRecord acDataForm,
Forms!theMainform!theSubFormControl.SourceObject, acNewRec
End Sub
Any assistance is appreciated.
Thanks
Bernie