waterhorse2
Programmer
I am an experienced developer but don't know certain basic syntaxes for VBA.
I have button on a form whose Click event reads data from controls on the form and opens a report with a whereCondition built from the data.
I want be able to launch multiple reports (selected by radio buttons) from this same for with the same button so I want to modularize by moving some of the code from the Click event to individual subs for each report. I have tried a sub with a parameter (FormName As Form) but can't get the calling syntax in the Click event.
Direct answers, references or suggestions of alternate methods would be appreciated.
TIA,
Paul Scott
I have button on a form whose Click event reads data from controls on the form and opens a report with a whereCondition built from the data.
I want be able to launch multiple reports (selected by radio buttons) from this same for with the same button so I want to modularize by moving some of the code from the Click event to individual subs for each report. I have tried a sub with a parameter (FormName As Form) but can't get the calling syntax in the Click event.
Direct answers, references or suggestions of alternate methods would be appreciated.
TIA,
Paul Scott