Forcing a Record to Save

J

Josef

hi,

i have a problem that when i move between forms i get a dialog appearing
that stated that data has been changed, and to either save/copy to
clipboard, or drop changes.

on one form i reference one table, but in another i reference 2 tables.

is there any way to save the current record before moving to the next
form and stop the dialog from returning ?

thanks.
 
A

Allen Browne

To save the current record, set its Dirty property to No:
If Me.Dirty Then
Me.Dirty = False
End If

That approach works even if the form does not have focus, and generates a
trappable error message if the save fails for any reason.
 
J

Josef

To save the current record, set its Dirty property to No:
If Me.Dirty Then
Me.Dirty = False
End If

That approach works even if the form does not have focus, and generates a
trappable error message if the save fails for any reason.

thx allen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top