2

I'm trying to execute a function that opens forms at startup and I created the AutoExec macro.

I have a module called startup in which there is a function called startup.

The AutoExec macro has the action Run Code with a function named startup ().

When I start my database, I get the error, "The expression you entered has a function that Access can't find".

Is there something I'm doing wrong? Please help!

Thanks.

1
  • nevermind...figured it out. For anyone interested: the function name cant be the same as the module name.
    – Shubham
    Commented Aug 17, 2011 at 20:05

1 Answer 1

2

You can't have the function name the same as the module name. Change the function name from startup() to onStart().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.