0

I have 2 forms I'd like to open when the Database opens based on a condition.

Basically If 'table1' exists in the database, then open form1
Else open form2

Is there a way to get this functionality right when the database first opens?

1 Answer 1

3

You can use the AutoExec macro and "run form". Create a macro called "AutoExec". Do what is needed in the macro.

There is also a "Display Form" under the "Application Options" that you can use.

Sign up to request clarification or add additional context in comments.

3 Comments

There is no "run form", but there is "open form" but that only lets me open one form unconditionally.
I tried doing "run code" on a function in a module that opens the right form based on a condition, but when I start my databse, i get the error "The expression you entered has a function name that Access can't find"
Nevermind figured it out! For anyone interested: the function name cant be the same as the module name.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.