I have a combo box that can open any form in my database.
this is the macro that makes is work:
and this works great because I often need to open many forms given the activity I perform.
I've tried to set up the same for a macro but Access is telling me that it can't find "MacroToOpe n" (which is the TempVars name that I gave it.
any idea why?
(I set up the same kind of table that I had to create to be the source of my combo box for my form and report combo boxes. The only difference is instead of open a form or a report from the combo I want to run a macro from the combo box. Can it be done?
this is the macro that makes is work:
Code:
IsNull([Screen].[ActiveControl]) - StopMacro SetTempVar - FormToOpen, [Screen].[ActiveControl] [CurrentProject].[IsTrusted] - SetValue - [Screen].[ActiveControl], Null OpenForm - =[TempVars]![FormToOpen], Form, , , , Normal RemoveTempVar - FormToOpen
I've tried to set up the same for a macro but Access is telling me that it can't find "MacroToOpe n" (which is the TempVars name that I gave it.
any idea why?
(I set up the same kind of table that I had to create to be the source of my combo box for my form and report combo boxes. The only difference is instead of open a form or a report from the combo I want to run a macro from the combo box. Can it be done?
Comment