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!

runcommand replaces domenuitem in access97, code example needed 1

Status
Not open for further replies.

punky

Programmer
Mar 21, 2001
29
US
I am bombing in access97 because of this code while trying to append a record to a table.

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append

What is the replacement runcommand supposed to look like.
I have tried about 6 different formats. None work.
 
I think the second one would be the Edit>Cut command, which would translate to:
RunCommand acCmdCut

The last one (Paste Append) would be:
RunCommand acCmdPasteAppend

I don't know what the first one would be. It would be the 8th item on the active Edit menu when it ran in Access 95, but I have no idea what that would be. If you can identify the command, you can look for a similarly named acCmd... constant in the Help file, under RunCommand Method Constants. Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top