I am trying to open a report based on a subform, but I keep getting a parameter value box when the value is already on the subform. Any help would be appreciated!!
Here's the code so far:
Dim stDocName As String
stDocName = "rptBookingReportOLD"
DoCmd.OpenReport stDocName, acPreview, , "[Record No]=forms![subNameMugshot3]![Record No]"
[subNameMughot3] is a subform, the main form is called Incidents. The command button to preview the report is on the subform.
"Ordinary people make extraordinary leaders"
Here's the code so far:
Dim stDocName As String
stDocName = "rptBookingReportOLD"
DoCmd.OpenReport stDocName, acPreview, , "[Record No]=forms![subNameMugshot3]![Record No]"
[subNameMughot3] is a subform, the main form is called Incidents. The command button to preview the report is on the subform.
"Ordinary people make extraordinary leaders"