Results 1 to 7 of 7
  1. #1
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    DoCmd.DoMenuItem (Access 2003 SP3)

    I would like to know what the following command does:

    DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: DoCmd.DoMenuItem (Access 2003 SP3)

    Patt

    I think it is a Refresh button.

    I just created a Refresh Record button with the wizard in Access 2003, and the code generated was the same.


    John
    Regards
    John



  3. #3
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: DoCmd.DoMenuItem (Access 2003 SP3)

    Thanks John, i hate those old Access 2 commands.

    Is that to refresh a form?

  4. #4
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: DoCmd.DoMenuItem (Access 2003 SP3)

    Yes I hate them too!

    I thought it would be a Save Command, because that is the 5th item in the Records Menu of the Forms Toolbar.
    But when I created the button the code was

    DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 (and acSaveRecord has a value 4),

    so I tried the next item in the Menu,
    Attached Images Attached Images
    Regards
    John



  5. #5
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: DoCmd.DoMenuItem (Access 2003 SP3)

    Thanks for taking the trouble to find that out.

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: DoCmd.DoMenuItem (Access 2003 SP3)


  7. #7
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: DoCmd.DoMenuItem (Access 2003 SP3)

    Thanks Hans, that will help a lot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •