Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28
  1. #16
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by Remster View Post
    As for dispensing with the 'refresh' button, are you talking about adding an AfterUpdate event or something like that?
    Absolutely! If the user is interacting with the form in any way, there are several events taking place that can do the refresh for you. FYI...do you know what the difference is between Refresh and Requery?

  2. #17
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317
    Quote Originally Posted by RuralGuy View Post
    FYI...do you know what the difference is between Refresh and Requery?
    Not a clue. All I know is that when I substituted 'Requery' for 'Refresh' in my code, my 'refresh' button didn't update my dropdowns. Instead it took me to the first record.

  3. #18
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Refresh only updates the current Recordset while a Requery get an entirely new Recordset. This means that Refresh will not drop deleted record (usually shows Deleted) nor will it show any new records. A Requery will get a new Recordset so new records will be present and deleted records will be missing and you are taken back to the first record of the recordset.

  4. #19
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317
    The main problem is that 'Requery' doesn't seem to work. With reference to my earlier screenshot, if I enter a new record into the subform and click the refresh button, the new value doesn't appear in my dropdown lists. (The other problem is that I don't want to return to the first record!) Perhaps simply replacing 'Refresh' with 'Requery' in my VBA isn't enough.

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Maybe this link will help: http://www.baldyweb.com/Requery.htm

  6. #21
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317
    Thanks, I'll try to look at that at the weekend. Unfortunately I don't have access to a PC that both can handle zip files and has Access installed, to I'll pick the files up at someone else's house.

  7. #22
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you using Windows? XP knows how to unzip a file. There are also Free utilities that can UnZip: http://download.cnet.com/FreeZip/3000-2250_4-9507.html

  8. #23
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317
    If only it were that simple! I have XP at work but zip files are blocked. I have 98(!) at home but no internet. And my parents have Vista but no MS Access. So I'm going to unzip the sample database at my parents' house, put it on a memory stick, and take it home.

  9. #24
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sounds like you have a plan. Go for it!

  10. #25
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317
    I know this will make you want to beat me up, but I still can't get 'Requery' to work, whereas 'Refresh' seems to do what I want it to do: it adds any new records to my lists and removes any deleted ones.

  11. #26
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Well if it is working than I would say it is not broke. Are we done here? 8^)

  12. #27
    Remster is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    317
    Yep – I've duly marked it solved.

  13. #28
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Great. Enjoy the rest of the day.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Refreshing Make table queries within a form?
    By umass02 in forum Queries
    Replies: 2
    Last Post: 09-03-2010, 09:14 AM
  2. refreshing form after running query
    By ninachopper in forum Queries
    Replies: 1
    Last Post: 07-12-2010, 04:30 AM
  3. Refreshing queries without opening them
    By trialpayjinn in forum Access
    Replies: 3
    Last Post: 07-01-2010, 05:04 PM
  4. Outlook Table not Refreshing (2007)
    By rglasunow in forum Programming
    Replies: 0
    Last Post: 09-23-2009, 11:50 AM
  5. Refreshing comboboxes in a subform
    By KB_Dev in forum Programming
    Replies: 1
    Last Post: 04-07-2009, 12:12 PM

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