SaveRecord in 2000

mikemaki

Registered User.
Local time
Today, 15:21
Joined
Mar 1, 2001
Messages
81
In our conversion from 97 to 2000 we have had to change the line of code : DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord,,acMenuVer70 to: DoCmd.RunCommand acCmdSaveRecord. This works fine for a converted database running in 2000. But since our users have not all been upgraded not all databases have been converted. I have one 97 database being opened in 2000 without converting it. When the RunCommand is hit the app stops. I am thinking save is disabled in this situation even for records. Am I correct? Is there any way to get around this until we are able to convert the database?
 
DoMenu Item was obsolete in 97, why not just change it to the RunCommand anyway?
 
Your right. We've got some catching up to do. fyi - The problem wasn't DoMenuItem vs RunCommand. SaveRecord wouldn't work in 2000 because the form was set to AllowEdits=False. In 97 SaveRecord works no matter what state AllowEdits is in.
 

Users who are viewing this thread

Back
Top Bottom