My form has a record source that is a parameter query. The "parameters" are to be obtained from a second form that is opened in on open event in the first form as follows
Private Sub Form_Open(Cancel As Integer)
On Error Resume Next
DoCmd.OpenForm "Month Report Dates", acDesign, , , , acDialog, "MonthlyBoardReport"
If Not IsLoaded("Month Report Dates") Then
Cancel = True
End If
End Sub
My problem is that the query runs before the Form_open event...I get prompted for the parameters prior the above code being called. After entering the parameters the code does get called!
Any Ideas how to fix this so the code does get called before the query running ?
Thanks
Private Sub Form_Open(Cancel As Integer)
On Error Resume Next
DoCmd.OpenForm "Month Report Dates", acDesign, , , , acDialog, "MonthlyBoardReport"
If Not IsLoaded("Month Report Dates") Then
Cancel = True
End If
End Sub
My problem is that the query runs before the Form_open event...I get prompted for the parameters prior the above code being called. After entering the parameters the code does get called!
Any Ideas how to fix this so the code does get called before the query running ?
Thanks