1 report many headings

  • Thread starter Thread starter Afrosheen
  • Start date Start date
A

Afrosheen

Right now I have 4 reports but the information in it is the same. Ex: A-Days,
A-Nights, B-Days, & B-Nights. Like I said all the information within it is
the same. Just the header is different.

What I'd like to do is use one report when I click on the command button
"A-Days" then the string "A-Days" would be passed to the report and be
printed. The same with all the reports. The reports are being generated by a
query of the same names above.
 
Afrosheen said:
Right now I have 4 reports but the information in it is the same. Ex: A-Days,
A-Nights, B-Days, & B-Nights. Like I said all the information within it is
the same. Just the header is different.

What I'd like to do is use one report when I click on the command button
"A-Days" then the string "A-Days" would be passed to the report and be
printed. The same with all the reports. The reports are being generated by a
query of the same names above.


Sounds like all you need is for the command buttond code to
use the OpenReport method's OpenArgs argument:
DoCmd.OpenReport stDoc, OpenArgs:= "A-Days"
Then the report's Open event can set a label's caption:
Me.somelabel.Caption = Me.OpenArgs
 
Back
Top