I've never used the Macro object in Access, but I've inherited a project, and I need to. I cannot get the runcode option to run a UDF, getPeachtree().
The macro name is importPeachtree; so, there is no name conflict. (The module that has the code with other code is Importing, again, no name conflict).
The action is RunCode.
The function name for the RunCode is getPeachtree. I have done it with () and without. The () have had no space after getPeachtree() as well as a space getPeachtree ().
Regardless of what I do, the error comes up, "The expression you entered has a function name that [my program name] can't find."
I have converted the macro to VB, which is in the snippet. When I go into the VB editor and run the snippet, everyone works fine!
This has to be a common problem. What do I do fix this so that I don't have to throw my laptop through a window?
On Error GoTo Switchboard_importPeachtree_Err