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

Save the editing record!! 1

Status
Not open for further replies.

Fekri

Programmer
Jan 3, 2004
284
IR
Hi,

I have a bound form which I have a command button in it.
with this button user can open the new form with data based on first form.
now, if the first form when the record is new...
I have the
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
before open form command in button onclick event which will save the data in that record before open new form.
But if the first form opened in old record and user changed the some fields data, the above line will not help me to save the changes in record data before open the new form?

So, in this case, How should I prompt to save the current record with the changed data??

thanks
Fekri


Thanks & Good Luck
Ali Fekri
 
Replace this:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
with this:
Me.Dirty = False

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PHV

As God, you always getting my hand too tight.!!

thanks so much

Fekri

Thanks & Good Luck
Ali Fekri
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top