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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Records on a Form

Status
Not open for further replies.

Malc8179

MIS
Oct 8, 2007
28
GB
Hi Guys
I have a access form that is bound to a table when the users make a change in a field on the form and move to the next field or record the record is saved, the users have asked if this can be changed so they have to click a save button to commit any changes before they can move to the next record.
Is there an easy way to make this happen or will i have to unbind the form?

Thanks
 
How about adding a message box to the before update event?

Code:
If vbYes<>MsgBox("Save?",vbYesNo) Then
   Me.Undo
End If

Note that this will be an annoyance if you have subforms.
 
Thanks this helps

is there a way i can tell the state of the record ie if no changes have been made what is its state, i than can add an save button and an if statement to the code above saying if no pending changes end sub
 
If Me.Dirty=False

Means that there are no changes.
 
Thanks for your help with this it's saved me a lot of aggro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top