sort of - you want the words or string say, filters, to open the report called filters.
Actually, I want the word or string say, filters, to open a similar form named "Reports - Filters Used" that lists the reports that exist for the filters (ie: "Air Filters by Mower", "Fuel Filters by Mower", and "Oil Filters by Mower").
Then, I want the words or string say, Air Filters by Mower, to open the report called "Air Filters by Mower".
But, for the word "Batteries" and the word "Tires", I want the words or string say, Batteries / Tires, to open the related report called "Batteries" / "Tires".
I am guessing you have a listbox for the list to select from?
I don't think that I am using a listbox for this. Instead I believe that it is an "unbound object".
Here you can see the property sheet for the main form, "Reports - Parts Main" form:
Here you can see the "unbound object" with it's properties:
The "Run Report" button has an [Event Procedure] in the "On-Click" command line:
Code:
Option Compare Database
Private Sub Command5_Click()
On Error GoTo Err_Command5_Click
Dim stDocName As String
stDocName = "MacroPartsMain"
DoCmd.RunMacro stDocName
Exit_Command5_Click:
Exit Sub
Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click
End Sub
And here's the MACRO for the reports (I know that the MACRO has a different name. I messed up the original and am just using this one as an example of how it was laid out):
The best way that I can think to recap is with a flow chart:
Does this help at all???