• Error: Invalid procedure call or argument (5)? (A2007 (12.0.6334.5000) SP1 Jet 4.0 SP-8 WinXp SP2)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Error: Invalid procedure call or argument (5)? (A2007 (12.0.6334.5000) SP1 Jet 4.0 SP-8 WinXp SP2)

    Author
    Topic
    #457436

    I have a Custom Menu Bar, when I select:

    Tools, Compact and Repair Database…

    It runs:

    CommandBars(“Menu Bar”). _
    Controls(“Tools”). _
    Controls(“Database Utilities”). _
    Controls(“Compact and Repair Database…”). _
    AccDoDefaultAction

    I’m getting the following error:

    Microsoft Office Access
    Error: Invalid procedure call or argument (5) OK

    This same code works OK for years with no messages on a2k thru a2k3 computers

    Any thoughts?

    Thanks, John

    Viewing 0 reply threads
    Author
    Replies
    • #1146937

      I don’t have Access 2007, but I’d think the error is because it has a ribbon instead of a menu bar.

      • #1146940

        I’m using Custom Menu Bar and running 2007 in what they call legacy mode which eliminates Ribbons and uses the Menu Bar File, Edit, View, Tools… as

        per http://office.microsoft.com/en-us/access/HA100365441033.aspx%5B/url%5D which I thank your for.

        All the other menu option seem OK

        John

        • #1146941

          I hope that someone who has Access 2007 can help you.

          • #1146943

            Is there another way of doing the equivalent of the following in code?

            CommandBars(“Menu Bar”). _
            Controls(“Tools”). _
            Controls(“Database Utilities”). _
            Controls(“Compact and Repair Database…”). _
            AccDoDefaultAction

            Tbanks, John

    Viewing 0 reply threads
    Reply To: Error: Invalid procedure call or argument (5)? (A2007 (12.0.6334.5000) SP1 Jet 4.0 SP-8 WinXp SP2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: