By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Requery Reverts to First Record

P: 16
Hi,

I have a wee problem with acceess, when I filter records on a form (based on the value of a combo box) the record does not update on the form. If I 'Refresh' it does nothing, if I 'Requery' it reverts back to record 1. Is there a way I can get the record to update without reverting to record 1?

Thanks for any advice.

ffripp
Nov 13 '13 #1

✓ answered by ADezii

There are several ways to accomplish this. My favorite is to Bookmark the Current Record, Requery, then return to it.
Expand|Select|Wrap|Line Numbers
  1. Dim varBookmark As Variant
  2.  
  3. varBookmark = Me.Bookmark       'Bookmark the Current Record
  4. Me.Requery                      'Requery Record Source
  5. Me.Bookmark = varBookmark       'Return to Bookmark

Share this Question
Share on Google+
1 Reply


ADezii
Expert 5K+
P: 8,616
There are several ways to accomplish this. My favorite is to Bookmark the Current Record, Requery, then return to it.
Expand|Select|Wrap|Line Numbers
  1. Dim varBookmark As Variant
  2.  
  3. varBookmark = Me.Bookmark       'Bookmark the Current Record
  4. Me.Requery                      'Requery Record Source
  5. Me.Bookmark = varBookmark       'Return to Bookmark
Nov 13 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.