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

Save Record Question

Status
Not open for further replies.

cpsqlrwn

IS-IT--Management
Jul 13, 2006
106
US
I have a form which only edits existing records. The last field is the only field available for editing and on the BeforeUpdate event for that field I have a vbYesNo confirmation box which is working properly. No closes the form without saving. Can someone provide me the code needed to save the record and leave the form open when Yes is selected? This form is cycling the current record only, not all records. Thank you.
 
I was able to save the record by putting the statement "Me.Dirty = False" in the AfterUpdate event for the editable field. Is there any potential problem with that or is that an ok alternative to your suggestion? Thank you!
 
'Me.Dirty = False' and 'DoCmd.RunCommand acCmdSaveRecord' have the same effect in a bound form.
I personally prefer the former (less typing ;-))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top