That's the beauty of it - you use just one. That way, say someone wants 5 of the reports and they want to look at the same date range--this is much better than them be prompted 5 different times for the same info! This is a pretty standard set-up, there might be something in the sample Northwind database or in a text book.
The basic way would be to have 10 buttons for your 10 different reports. You can label the buttons themselves, or have a label next to each one and have the buttons be little squares. Each button's code is pretty much the same, first making sure that the dates are filled in the text boxes, then opening one of the reports.
A more advanced way (tidier and easier to maintain the code) would be to have the reports listed in an option box (with the radio buttons) and one command button that says like "VIEW" or something on it. When the user hits the VIEW button, the code goes something like this (assuming an option box called optReportSelection):
Code:
'First check that dates are filled in
if me.txtDateRangeFrom = "" or isnull(me.txtDaterangeFrom) then
msgbox "Please enter a From Date!",vbokOnly,"Missing Info"
me.txtDateRangeFrom.setfocus
exit sub
end if
'Dates are filled in so open the appropriate report
dim strReportName as String
Select Case Me.fraReportSelection
Case 1
strReportName = "Report1"
Case 2
strReportName = "Report2"
Case 3
strReportName = "Report3"
etc
End Select
Docmd.OpenReport strReportName, acViewPreview
This way, you don't have 10 copies of the same coding, and it's just neater. So look up OPTION BOX (each radio button will have a different 'value' of like 1,2,3, etc)
So, just some ideas. Hope this helps!
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244. Basics at