Reports to print

G

G. Vergara

I've created a form that has data for four different
reports. The data are the same for the reports, but they
are presented in different ways. How do I create a yes/no
check box to select which reports to print?
 
F

Fredg

1) For 4 different reports you could add an Option Group to the form.
Then code the Option Group AfterUpdate event:

Dim strReport as String
Select Case OptionGroupName
Case is = 1
strReport = "Report1"
Case is = 2
strReport = "Report2"
Case is = 3
strReport = "Report3"
Case Else
strReport = "Report4"
End Case
DoCmd.OpenReport strReport, acViewPreview

2) You can also use a Combo Box with the names of the reports.
Then code the Combo Box After Update event:
DoCmd.OpenReport Me!ComboName, acViewPreview
 
M

Mark

Hi,
You could also use the Switchboard to select the report
format that you want to be presented.
m.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top