Results 1 to 4 of 4
  1. #1
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    374

    Using Find in Recordset

    I've opened a recordset and using .Find next, Previous, First.
    Once the Find is applied the recordset appears to be limited to just what it finds.


    Is this correct, if yes, is there a method to restore the original (full) recordset ?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,746

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,458
    No code provided so just a guess you are applying a filter not using find

  4. #4
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    374
    Thanks for the replies, I think now my assumption .Find changed the recordset size was wrong.
    But one puzzle remains, how to code Find to find either a string or a number. I've done this.. is it ok or a better method exists?
    Code:
     qu = IIf((r(O).Type = 12) Or (r(O).Type = 10), Chr$(34), "")
     r.FindNext (Me!subTracks.Form.ActiveControl.ControlSource & " = " & qu & r(O) & qu)
     If r.NoMatch = True...

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

Similar Threads

  1. Replies: 9
    Last Post: 03-20-2021, 07:31 PM
  2. Find.first in recordset
    By jctaylor in forum Programming
    Replies: 14
    Last Post: 04-09-2018, 02:41 PM
  3. Replies: 6
    Last Post: 12-03-2013, 11:14 PM
  4. Replies: 2
    Last Post: 03-08-2012, 12:59 PM
  5. Using a recordset to find ANY records
    By Drak in forum Programming
    Replies: 7
    Last Post: 01-10-2012, 07:11 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