(edit: forgot to say, I'm using Access 2003)
I have an Autoexec macro that uses RunCode to call a VBA function.
It works fine on one PC, in MDB or MDE.
On another PC I'm trying to run it on, it works fine as a MDB but gives an error when I open the MDE version:
"The expression you entered has a function name that Microsoft Office Access can't find"
I have tried making the function Public, but that has no effect.
If I convert it (MDB to MDE) on the second PC, it will run, but I don't have the code-signing certificate set up on that PC, and shouldn't have to just to get it working!
edit: just had an idea... tried putting the function call in a form's OnLoad, and having that form open on startup instead of the macro... still doesn't work. Brings up a different error:
"the expression on load you entered as the event property setting produced the following error:
requested type library or wizard is not a vba project.
* the expression may not result in the name of a macro, the name of a user-defined function, or [event procedure].
* there may have been an error evaluating the function, event, or macro."
I have an Autoexec macro that uses RunCode to call a VBA function.
It works fine on one PC, in MDB or MDE.
On another PC I'm trying to run it on, it works fine as a MDB but gives an error when I open the MDE version:
"The expression you entered has a function name that Microsoft Office Access can't find"
I have tried making the function Public, but that has no effect.
If I convert it (MDB to MDE) on the second PC, it will run, but I don't have the code-signing certificate set up on that PC, and shouldn't have to just to get it working!
edit: just had an idea... tried putting the function call in a form's OnLoad, and having that form open on startup instead of the macro... still doesn't work. Brings up a different error:
"the expression on load you entered as the event property setting produced the following error:
requested type library or wizard is not a vba project.
* the expression may not result in the name of a macro, the name of a user-defined function, or [event procedure].
* there may have been an error evaluating the function, event, or macro."
Last edited: