Hello,
I made a one field table that either holds a value of Yes or No (currently- Later it will get more complex) I have a form in which a user selects from a drop down (limited to list) yes or no. How I have it set up is when the welcome splash form opens when the database opens, it will run an on-timer event. It will check the invisible field on welcome form to see if the value = yes. If it does then it should open a specific form, else end if. My desire & I may be going at this the wrong way it to allow a user to set via a control form whether they want to view a specific form upon the closing of the welcome form. I checked the below code via another form and ran it on an onclick event - Worked just fine. But when the on timer event goes, it doesn't open the specific form (and the value currently in there is yes) and it opens the debugger highlighting the first line of the if statement. Not sure why it's doing this? Any ideas?
Below is the code I have on the on timer event.
Thanks,
---roystreet
I made a one field table that either holds a value of Yes or No (currently- Later it will get more complex) I have a form in which a user selects from a drop down (limited to list) yes or no. How I have it set up is when the welcome splash form opens when the database opens, it will run an on-timer event. It will check the invisible field on welcome form to see if the value = yes. If it does then it should open a specific form, else end if. My desire & I may be going at this the wrong way it to allow a user to set via a control form whether they want to view a specific form upon the closing of the welcome form. I checked the below code via another form and ran it on an onclick event - Worked just fine. But when the on timer event goes, it doesn't open the specific form (and the value currently in there is yes) and it opens the debugger highlighting the first line of the if statement. Not sure why it's doing this? Any ideas?
Below is the code I have on the on timer event.
Code:
If txtOpenForm = "Yes" Then
DoCmd.openForm "frm-test", acNormal, "", "", , acNormal
End If
Thanks,
---roystreet