|
From: Afrosheen on 20 Jun 2008 08:23 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.
From: Marshall Barton on 20 Jun 2008 12:29 Afrosheen wrote: >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 -- Marsh MVP [MS Access]
|
Pages: 1 Prev: Problems with ConvertreportToPdf Next: average on dynamic report |