onopen event

rikklaney1

Registered User.
Local time
Today, 10:50
Joined
Nov 20, 2014
Messages
157
I have a form that the on open event sets a couple of values in text boxes depending on what time the form is opened. This works fine when I open the form through a button click but when opened through vba it doesn't set these values. Any ideas why it only skips it when using vba?
 
How are you opening the form through VBA? Please post the code. Does the button use VBA to open the form or is it a macro?
 
Use form load. (Not open)
 
I had a docmd.openform "form name" on a timer to open the form from another form. Everything worked fine when opening the form manually or with a button click but using the timer it didn't work with onopen or onload. I imported everything into a new database and now it is working. Thanks anyway guys.
 

Users who are viewing this thread

Back
Top Bottom