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!

The command or action 'SaveRecord' isn't available now

Status
Not open for further replies.

rewdee

Programmer
Aug 17, 2001
295
US
I'm using some simple code but I'm getting this error:

The command or action 'SaveRecord' isn't available now

The code is below is called a Command button just before opening another form:
Code:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Anyone know why this might be happening?

Thanks,
Rewdee
 
The record might have saved prior to clicking the command button.

Zameer Abdulla
[sub]Jack of Visual Basic Programming, Master in Dining & Sleeping[/sub]
Visit Me
 
Try:

[tt]if me.dirty then
' your save command
end if[/tt]

to prevent it.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top