Results 1 to 14 of 14
  1. #1
    adillpickle is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    13

    Refreshing Data

    When refreshing a form after entering data into various fields of that form, is there a way to keep it from going all the way back to the first field of the form? Is it possible to refresh and the cursor remain in the cell you currently in?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Before Refreshing, save the ActiveControl.Name and set the focus to it after the refresh.

  3. #3
    adillpickle is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    13
    Quote Originally Posted by RuralGuy View Post
    Before Refreshing, save the ActiveControl.Name and set the focus to it after the refresh.
    Thank you, RuralGuy. I have to admit that I am a bit of a novice. How would I go about this in my database?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    How are you refreshing the form now?

  5. #5
    adillpickle is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    13
    The "Refresh All" button on the toolbar

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I reread your first post. Why do you need to refresh your form after only entering values in your controls? What does that accomplish? Are you familiar with code at all? You probably can't change what the toolbar does but you could create your own button on the form that does what you want.

  7. #7
    adillpickle is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    13
    Quote Originally Posted by RuralGuy View Post
    I reread your first post. Why do you need to refresh your form after only entering values in your controls? What does that accomplish? Are you familiar with code at all? You probably can't change what the toolbar does but you could create your own button on the form that does what you want.
    There are multiple people who enter information in the database, sometimes at the same time. The operators refresh to ensure that the data is saved. That may not be necessary. I'm not sure you read in my last post when I said that I was somewhat of a novice to Access, but yes, I am familiar with code on a basic scale.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Maybe you could simply set the Refresh interval short enough to satisfy your requirement and avoid code. It might be worth a try. If you would prefer to implement your own method and need assistance, just post back here.
    https://msdn.microsoft.com/en-us/lib.../ff836021.aspx

  9. #9
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    First off, refreshing doesn't save data! Moving off of a Record or off of a Form or closing a Form saves data.

    Secondly, refreshing records only updates the data that already exists in your datasheet or form. It does not display new records or remove deleted records.

    Lastly, as Allan suggested, you can set the Refresh Rate by going to Options - Advanced. The default rate is every 60 seconds...and I really can't imagine needing to do it more frequently...your users would have to do it constantly, rather than entering data.

  10. #10
    adillpickle is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    13
    Thanks for your help, RuralGuy. I really appreciate your help.

  11. #11
    adillpickle is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    13
    Thank you for the clarification, Missingling

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Linq,

    If you follow the URL I posted in post #8, MSDN suggests that a Refresh *does* save data. I could be wrong here because I thought it didn't save data too.
    The Refresh method immediately updates the records in the underlying record source for a specified form or datasheet to reflect changes made to the data by you and other users in a multiuser environment.

  13. #13
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    I believe the term 'updating,' here, doesn't mean updating the Records, i.e. saving the data, but 'updating' what is actually displayed in the Form, which is, of course, the purpose of Refreshing.

    Of course, I could be wrong!

    Linq ;0)>

  14. #14
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    They chose an interesting selection of words to explain it. Maybe some day I'll do a test.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-30-2015, 10:38 AM
  2. Refreshing Data
    By Pure Salt in forum Access
    Replies: 2
    Last Post: 05-12-2014, 11:52 AM
  3. Refreshing Imported Text File Data Every X Minutes
    By acarella610 in forum Import/Export Data
    Replies: 5
    Last Post: 12-17-2013, 10:41 PM
  4. Refreshing Report Data
    By rts in forum Reports
    Replies: 5
    Last Post: 10-30-2013, 11:52 AM
  5. Replies: 7
    Last Post: 11-13-2012, 01:44 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