Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form closes, then a warning

Status
Not open for further replies.

Superguppie

Technical User
Jan 19, 2005
107
NL
Hey there,

When i close a form, it will automaticly op another form with a Where-condition Ticketnummer = ticketnummer

de form opens and i see the correct ticketnummer and then it has also a checkbox wich is not visible but is active, als afmelddatum is not visible but active.

now the checkbox must be unchecked (its always checked when this forms opens) and it works, but i get all the time a warning, that another user is editing the record, en I click ignore and the checkbox is unchecked, now i want that message to go away, any ideas??\

Thanks in advance,

Superguppie
 
Superguppie . . .

Try changing the code for setting the checkbox to:
Code:
[blue]   DoCmd.SetWarnings False
   Me![purple][B][I]CheckboxName[/I][/B][/purple] = False
   DoCmd.SetWarnings True[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
ok, I tried your code, it still gives the error when form closes..... also i tried to delete docmd.setwarnings True so the warnings stay off, but then the message is gone and the checkbox is also still checked, but the message ask me if i want to ignore it or continue, when i ignore it the checkbox wil uncheck, when i continue the checkbox stays checked,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top