Hi, I would like to make the Choose Parameter box into a combo box, I've been trying to use a form to no avail so far, and if it does work, it still opens a Choose Parameter box, then opens the query as well as the report.
Here's the code I've been playing with, a.t.m. the Run my Report button does nothing, so I click cancel and then the Choose Parameter box pops up.
Option Compare Database
Private Sub Report_Close()
DoCmd.Close acForm, "ChooseForm"
End Sub
Private Sub Report_Open(Cancel As Integer)
' Set public variable to true to indicate that the report
' is in the Open event
bInReportOpenEvent = True
' Open Sales By Category Dialog
DoCmd.OpenForm "ChoosePark", , , , , acDialog
' Set public variable to false to indicate that the
' Open event is completed
bInReportOpenEvent = False
End Sub
I just want to choose from a drop down box and have the corresponding report appear with all of it's subreports referring to the same thing.
How can I do this?
Thanks!