Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179

    Sometimes Won't Find Previous Records

    Hello,

    Hold down shift key when opening database. On my AFRs Form in the AFR Number field sometimes it won't find previous AFR Numbers. I use Ctrl+F to find the numbers.

    Some example numbers:



    85637
    83115
    83733
    88888

    Can someone please try to see why?

    Thank you

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    I looked at your code briefly. I commented out a few lines on your SwitchBoard form as below
    Code:
    Private Sub Form_Load()
        'Hide ribbon
       ' DoCmd.ShowToolbar "Ribbon", acToolbarNo
       ' DoCmd.Maximize
        'Hide navigation pane
        DoCmd.SelectObject acTable, , True
        'DoCmd.RunCommand acCmdWindowHide
    End Sub
    I took screenshots
    -first (Bill) while on AFR 83115,did ctrl F and set the Find to look for 88888, and
    -second (Bill2) showing the result AFR 88888.
    -third (Bill3) while on AFR 88888, ctrl F to find 83733 UP/Previous
    -Fourth (Bill4) result of Find in Bill3.

    I don't know what causes some AFRs to NOT be found -- unless you're checking Up/Down incorrectly. I would expect All to work(since it should do the search in any.all directions). Seems to find AFRs for me, but I did not try all of your values.

    Good luck with your project.
    Attached Thumbnails Attached Thumbnails Bill_83115B4_88888.PNG   Bill2_AfterFind88888.PNG   Bill3On88888Find83733_UP.PNG   Bill4_ResultOfFindUpFor83733from88888.PNG  

  3. #3
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Thank you for helping. If I search through those numbers multiple times back and forth sometimes it doesn't find.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,130
    Why not try using a combo listing all existing values to run your searches as I suggested in your previous thread.
    Doing that means users don't need to use Ctrl+F and nor do they need to know which values already exist
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  5. #5
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Actually something must be wrong because Ctrl+F should find a previous record every time but it isn't.

    There must be some underlying cause.

    I really appreciate it if someone can find the reason.

    Thank you

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    When a user "needs" to Find a record/AFR, what exactly do they use for criteria? I guess I'm really asking what is the "business requirement" for Finding a record? Edits/Updates to existing records; creating new records?
    As Colin said creating a combo based on AFRId, and/or Clerk and/or Customer and/or Description and/or Complaint may all be valid searches. But we don't know your business. All seem reasonable choices.

    Lots of tutorials re Comboboxes from techonthenet.

  7. #7
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    The business requirement to look at history for warranty purposes or general history of a customer by the amount of AFR Numbers. We have used Ctrl+F to find previous serial numbers or part numbers or Customer names.

  8. #8
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,130
    Yes I know you have used Ctrl+F but for whatever reason its problematic.
    Its not the standard way of searching as it requires users to know which numbers are valid
    The fact that you needed to suggest valid numbers reinforces that point.

    I'm suggesting using a better method rather than spending time trying to fix a less good method.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  9. #9
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Okay isladogs I am willing for sure since you are much more experienced than me.

  10. #10
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,758
    Standard method is a Combobox as suggested by Colin

    See attached example.

    I made the form based on the AFR table and not a query in order to allow for searching using a Combobox. If it is based on a query then this facility is not available.
    Attached Files Attached Files

  11. #11
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Mike,
    I agree that your combo can find and display specific AFR. But from the OP's perspective, does the user really know (for certain) the 5 digit AFRId? It many cases to find records there is a need to do a partial match on Customer, or Product or Complaint etc (pick an environment where someone remembers part of something -- sort of Browse to Find the One I mean).
    Don't get me wrong --designed combo approach(es) is more comprehensible than Ctrl F and guess which control to search.

  12. #12
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,130
    @mikesmart
    Disagree with your comment about queries and combos.
    Combos can be based on queries or sql statements as well as tables. Any of those are suitable for a row source and can be used in a search form.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  13. #13
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    We know the previous AFR number when it gets returned for warranty issue. Then we look up the previous AFR Number to see what was done.

    Thanks

  14. #14
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Mike that works great thank you!

    What if we looked up a serial number? There may be more than one occurrence however so I'm not sure if this method will work.

  15. #15
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850

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

Similar Threads

  1. Total of previous records
    By kkbharat in forum Queries
    Replies: 13
    Last Post: 06-08-2019, 04:48 AM
  2. Storing All Previous Values for Records
    By breakingme10 in forum Database Design
    Replies: 3
    Last Post: 05-13-2018, 04:11 PM
  3. Deselect check box in previous records
    By matt704 in forum Forms
    Replies: 24
    Last Post: 03-06-2017, 10:19 AM
  4. Subquery to find previous value
    By mike02 in forum Access
    Replies: 15
    Last Post: 06-24-2013, 07:24 AM
  5. Find the Nearest Previous Saturday
    By RachelBedi in forum Access
    Replies: 1
    Last Post: 09-21-2012, 12:51 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