Fredg
Thanks for the reply.
I was looking at the VBA section for the SelectCase method as I have 15
reports to choose from.
I'm sorry to say I did not accomplish my task.
I could not find a section which directly relates to my question.
Any help please on the selectcase method would be most helpful.
I have 15 optionboxes Option Values of 1-15 and named Option1 - Option15
in
an option group called PrintReports
A command button named cmdPrintReport
Regards
John
Code the command button Click event like this:
Dim strReport as String
Select Case Me![PrintReports]
Case 1
strReport = "ReportA"
Case 2
strReport = "ReportB"
Case 3
strReport = "ReportC"
etc...
Case 15
strReport = ReportWhatever"
Case Else
strReport = ""
End Select
If strReport = "" then
MsgBox "No report was selected."
Else
Docmd.OpenReport strReport, ACViewPreview
End If