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

Saving the record 2

Status
Not open for further replies.

nickjar2

Programmer
Jun 20, 2001
778
US
Just curious about this one.

Say I have a form. I am at a record and I change the record and then need to open another form based on the amended record. Until u move of this amended rec the changes are not posted, so i usually use something on the lines of moving to the next record and moving back. I always think this looks really unproffesional.

ie
docmd.movemnext
docmd,moveprev
docmd.openform

Is there an alternative that won't make me cringe every time I lok at the code? I don't think docmd.saverecord works (if the command even exists)

Cheers,

Nick
 
Hi Nick!

You can use DoCmd.RunCommand acCmdSaveRecord or you can use the with command:

With DoCmd
.MoveNext
.MovePrevious
.OpenForm
End With

hth
Jeff Bridgham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top