Docmd.Menuitem in Access 2003 generates error - ADO DAO RDO RDS

This is a discussion on Docmd.Menuitem in Access 2003 generates error - ADO DAO RDO RDS ; Hi - I have this code DoCmd.DoMenuItem acFormBar, acRecordsMenu, acRefresh in the "on change" event of a text box - when it kicks in I get an error message saying there is an invalid name for the menu, command, or ...

+ Reply to Thread
Results 1 to 2 of 2

Docmd.Menuitem in Access 2003 generates error

  1. Default Docmd.Menuitem in Access 2003 generates error

    Hi - I have this code DoCmd.DoMenuItem acFormBar, acRecordsMenu, acRefresh
    in the "on change" event of a text box - when it kicks in I get an error
    message saying there is an invalid name for the menu, command, or subcommand.
    I'm suspecting that Access 2003 doesn't suuport this code. Any help is much
    appreciated.

  2. Default Re: Docmd.Menuitem in Access 2003 generates error

    "JP" <JP@discussions.microsoft.com> wrote in message
    news:CC85F697-02E1-4CE6-8415-60564DF02CA5@microsoft.com...
    > Hi - I have this code DoCmd.DoMenuItem acFormBar, acRecordsMenu,
    > acRefresh
    > in the "on change" event of a text box - when it kicks in I get an error
    > message saying there is an invalid name for the menu, command, or
    > subcommand.
    > I'm suspecting that Access 2003 doesn't suuport this code. Any help is
    > much
    > appreciated.


    Most (if not all) of that old DoMenuItem stuff can now be executed via the
    RunCommand method of the DoCmd object.

    DoCmd.RunCommand acCmdRefresh

    ought to do it in this case. Unfortunately I'm unable to test at the
    moment...




+ Reply to Thread

Similar Threads

  1. Get Run-time error 29068 whith DoCmd.Save acReport
    By Application Development in forum ADO DAO RDO RDS
    Replies: 2
    Last Post: 08-29-2007, 11:57 AM
  2. Error 2001 on Docmd.RunCommand (accmdInsertObject)
    By Application Development in forum ADO DAO RDO RDS
    Replies: 0
    Last Post: 05-26-2007, 09:09 PM
  3. Replies: 0
    Last Post: 03-02-2007, 04:08 PM
  4. WSDL generates code that works in VS 2005, but not VS 2003
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 03-01-2006, 01:27 PM
  5. RE: Nt Backup of Exchange 2003 Information Store Generates Evnet I
    By Application Development in forum Microsoft Exchange
    Replies: 0
    Last Post: 02-07-2006, 11:08 AM