G
Guest
I have a parameter text box (criteria) that I want to pop up when you click
on a command button which asks for input. My problem is, I have 7 reports
that I want to open and print but I don't want the text box to appear for
every report. I want it to ask once and use that criteria for each report.
My code is:
Dim strCBA As String
strCBA = "CBA.CBA = [What do you want to see?]"
DoCmd.SetWarnings False
DoCmd.OpenReport "Coverpage", acViewNormal, , strCBA
DoCmd.OpenReport "Report 1", acViewNormal, , strCBA
DoCmd.SetWarnings True
on a command button which asks for input. My problem is, I have 7 reports
that I want to open and print but I don't want the text box to appear for
every report. I want it to ask once and use that criteria for each report.
My code is:
Dim strCBA As String
strCBA = "CBA.CBA = [What do you want to see?]"
DoCmd.SetWarnings False
DoCmd.OpenReport "Coverpage", acViewNormal, , strCBA
DoCmd.OpenReport "Report 1", acViewNormal, , strCBA
DoCmd.SetWarnings True