B
Basenji
I am using Access 2003. A form, frmLocationDates, has been created with a
combo box, Location, with 4 locations and a text box for a start date,
StartDate, and a text box for an end date, EndDate. This is the code for the
event procedure: Private
Sub Report_Close()
DoCmd.Close acForm, "frmLocationDates"
End Sub
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "frmLocationDates"
End Sub
When I click to open the report in preview mode, it opens the form for the
parameters and then immediately opens the report in preview mode not leaving
any time to enter the parameters and thus the report comes back with errors.
What am I missing? When I run the query by itself it returns the correct data.
Thank you.
combo box, Location, with 4 locations and a text box for a start date,
StartDate, and a text box for an end date, EndDate. This is the code for the
event procedure: Private
Sub Report_Close()
DoCmd.Close acForm, "frmLocationDates"
End Sub
Private Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "frmLocationDates"
End Sub
When I click to open the report in preview mode, it opens the form for the
parameters and then immediately opens the report in preview mode not leaving
any time to enter the parameters and thus the report comes back with errors.
What am I missing? When I run the query by itself it returns the correct data.
Thank you.