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

acSaveRecord.....in access2000 1

Status
Not open for further replies.

grobbu

Programmer
Jun 25, 2002
40
BE
Hello....
Every time I call the code beneath here I get an error 2046......Anyone an idea how this comes....If u need more info or Code just mail it here or to jahribba@yahoo.com

tnx....

Private Sub cmdNieuwDocument_Click()
DoCmd.OpenQuery "qryTabelSjabloonLegen"

stDocName = "frmNieuwDocument"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.OpenForm stDocName, , , , acFormAdd
End Sub
 
Try DoCmd.RunCommand acCmdSave. This does the menu command directly without simulating the menu system.

Good Luck!
Please remember to give helpful posts the stars they deserve! This makes the post more visible to others in need![thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top