G
Guest
i am totally new at reports and I'd like help with this question.
I use two unbound combo boxes on my form (cbxSession) and cbxDay) to select
matching records from the underlying query. (works great) Now I have added a
Print button with the following code:
Dim stDocName As String
stDocName = "rptTest"
DoCmd.OpenReport stDocName, acPreview
When I click the button, I get two parameter messages asking for the values
of the combo boxes. What is the right syntax to print only the records that
are already selected and on the form? Also, is it done by the button's code
or in the report's code?
thank you for your help
I use two unbound combo boxes on my form (cbxSession) and cbxDay) to select
matching records from the underlying query. (works great) Now I have added a
Print button with the following code:
Dim stDocName As String
stDocName = "rptTest"
DoCmd.OpenReport stDocName, acPreview
When I click the button, I get two parameter messages asking for the values
of the combo boxes. What is the right syntax to print only the records that
are already selected and on the form? Also, is it done by the button's code
or in the report's code?
thank you for your help