Pat Hartman said:
That looked like a picture of a newer version of Access. The problem is that acMenuVer70 means Access 95! No one but Mike75 has that version installed!
Do a google search. I once found a web page that listed all these old menu items and cross referenced them to the RunCommand constants. I don't have the link any more but I think the site was actually devoted to the RunCommand and included the other stuff as a cross reference.
Pat,
I had that same site somewhere.
Here is a macro converted to module in Access 95 and a some DoMenuItem macro actions. I think it became RumCommand as a macro in A2000 and in a macro in converts OK when A95 is converted to A2000
Function Macro380()
If (Eval("[Forms]![MasterForm]![CopyDone] Is Not Null")) Then
DoCmd.RunMacro "Macro410", , ""
End If
If (Eval("[Forms]![MasterForm]![CopyDone] Is Not Null")) Then
Forms!MasterForm!CopyDone = Null
End If
DoCmd.Echo False, ""
DoCmd.OpenForm "SalesNotes", acNormal, "", "[NameNumber]=[Forms]![PrintandClose]![NameNumber]", acEdit, acNormal
DoCmd.OpenForm "SalesNotesOptions", acNormal, "", "", acEdit, acNormal
DoCmd.GoToControl "DateTime"
DoCmd.DoMenuItem 0, 5, 1, 1, acMenuVer70 ' Form, Records, Sort, Descending
DoCmd.GoToRecord , "", acFirst
Forms!SalesNotes!OneOffMerge = Forms!SalesNotesOptions!OneOffMerge
DoCmd.Close acForm, "SalesNotesOptions"
DoCmd.Close acForm, "SalesNotes"
DoCmd.DoMenuItem 0, 5, 4, 0, acMenuVer70 ' Form, Records, Save Record
End Function