I want to write submacros that open reports from forms.
My forms would have buttons that say things like “Print Report”, “Show Print View”, etc.
I want to call the same submacros from different forms, since the only difference is the name of the report.
The buttons would call the macro with the name of the report.
Is there a way to pass the name of the report from the button to the macro?
I’m pretty sure it is possible in VBA, but I want to know if it will work as a macro
TIA