How can i get vba to get a value from a combobox and make it run a macro

MelonFuel

Registered User.
Local time
Today, 23:38
Joined
Jun 15, 2012
Messages
31
Hi

How can i get vba to do this.

When i click a button on the main form the vba code will execute and get the value from the combobox ie TE4700 and locate the macro with the same name ie TE4700 with reports in then it will run the macro and print off the reports.

Thanks MelonFuel
 

Attachments

  • macro.PNG
    macro.PNG
    32.9 KB · Views: 162
As posted elsewhere:

Untested, but along the lines of:

DoCmd.RunMacro Me.ComboName
 

Users who are viewing this thread

Back
Top Bottom