Results 1 to 5 of 5
  1. #1
    rkalapura is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    New York
    Posts
    69

    "Refresh All" Command

    In Access 2010, under Home Tab, we have both "Refresh All" and "Refresh" command available on the ribbon. But in Macro we get only Refresh or Refresh Record command available under "Run Menu Command".

    Is there any chance to get 'Refresh All' inside macro commands in Access 2010?

    Thanks for your help.



    God Bless You.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    The only thing I could find for a method to run the ribbon RefreshAll is

    SendKeys "+({f9})"

    I don't know if macro can handle that, I use only VBA.

    Why do you need this?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    In VBA:

    CommandBars.ExecuteMso "DataRefreshAll"
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    MissScubyDu is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2020
    Posts
    1
    Thank you, June7! This resolved my issue, perfectly, as using DoCmd.RefreshRecord would not work. Neither did the SendKeys options.

  5. #5
    JoJo is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    1

    Thumbs up Works, I am so happy

    Quote Originally Posted by June7 View Post
    In VBA:

    CommandBars.ExecuteMso "DataRefreshAll"
    I have been looking for this for forever, thank you. You have no idea how many emails I get from users with a screen shot of the Macro error message :"The refresh command is not available at this time." LOVE

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Error Using "Browse To" Macro Command
    By Aaron5714 in forum Access
    Replies: 2
    Last Post: 06-14-2012, 03:01 PM
  2. Replies: 3
    Last Post: 06-09-2012, 08:14 AM
  3. Replies: 11
    Last Post: 03-29-2012, 02:32 PM
  4. Replies: 2
    Last Post: 02-21-2012, 01:35 PM
  5. "There was an error executing this command"
    By rnichols86 in forum Access
    Replies: 16
    Last Post: 11-18-2009, 06:56 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums