Hello,
In one of my forms, I use a boolean value (check-box) which I'd like to set as false as the form open. To do this I made a query and use it as opening statement in the form :
"
Private Sub Form_open ()
Dim stDocName as string
stDocName ="Reset_Action"
DoCmd.Openquery stDocName,acNormal,acEdit
"
Where Action is my boolean, and Reset_Action an update query which set it as false. It works like charm.
The problem, even if minor, is, for this form, I'd like to have the validation box not to appear so the user doesn't have to hit ok as the form opens.
So far, I've looked into the Openquery help and saw no lead which would point out to a possible way.
I'm starting to think I have to write down few more lines to emulate key pressing "ok" as many times as required, but don't know where to look at.
Any pointers appreciated.
In one of my forms, I use a boolean value (check-box) which I'd like to set as false as the form open. To do this I made a query and use it as opening statement in the form :
"
Private Sub Form_open ()
Dim stDocName as string
stDocName ="Reset_Action"
DoCmd.Openquery stDocName,acNormal,acEdit
"
Where Action is my boolean, and Reset_Action an update query which set it as false. It works like charm.
The problem, even if minor, is, for this form, I'd like to have the validation box not to appear so the user doesn't have to hit ok as the form opens.
So far, I've looked into the Openquery help and saw no lead which would point out to a possible way.
I'm starting to think I have to write down few more lines to emulate key pressing "ok" as many times as required, but don't know where to look at.
Any pointers appreciated.