Results 1 to 5 of 5
  1. #1
    maax555 is offline Novice
    Windows 10 Office 365
    Join Date
    Jan 2024
    Posts
    13

    Using a filtered combobox in a form to recall a record

    Hi, looking for a way to recall a record for editing by using a filtered combobox.
    I have had this working without a filter on the unbound Combo26.
    However when I choose customer to filter down the results in the unbound combobox, the filter works but the record remains on record 1 instead of going to the record of the part number I enter in the Combobox.
    what am I doing wrong?



    thanks.
    Attached Files Attached Files

  2. #2
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    430
    see the AfterUpdate event (VBA) of Combo26.
    Attached Files Attached Files

  3. #3
    maax555 is offline Novice
    Windows 10 Office 365
    Join Date
    Jan 2024
    Posts
    13
    Hi Jojo, many thanks. but this is not working for me.
    When I choose the customer I should get a list of all customers, currently 1 to 5.
    If I choose customer 1, currently PartNumbers 1234/1 and 2345/1 will be displayed in PartNumberSearch combobox.
    If I choose customer 2, then 3456/1 and 4567/1 will be displayed Using a filter in the unbound combobox.
    Currently records are in order of partnumber, so record 1 begins with 1, record 2 is 2 (2345/1) etc.

    So if I choose customer 2 this will (after filtering in combobox) show partnumbers 3456/1 and 4567/1, (record 3 and record 4)
    When I choose for example 4567/1 I need record 4 to be active.
    I will then be entering additional data (fields not added to form yet) and this will be stored to the record.

    So my uploaded form works apart from its not pulling in the record associated with the part number I enter.

  4. #4
    jojowhite's Avatar
    jojowhite is offline Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    430
    here try this again.
    Attached Files Attached Files

  5. #5
    maax555 is offline Novice
    Windows 10 Office 365
    Join Date
    Jan 2024
    Posts
    13
    Quote Originally Posted by jojowhite View Post
    here try this again.
    Brilliant. I see you did the form from scratch and used combo wizard box for all the fields?
    I thought I only needed to do that for the field I was using to search for the part number.
    I just looked at the code entered for each field event :-(
    I like to obviously see what has been used and try to understand, but that looks more complex the the codes I usually get to use.

    Many thanks for your help. Really appreciated.

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

Similar Threads

  1. Recall Records by date in a form
    By tdsummers in forum Access
    Replies: 11
    Last Post: 09-11-2017, 04:16 PM
  2. How to recall information previously entered
    By Accu-Grind in forum Forms
    Replies: 4
    Last Post: 11-07-2015, 06:34 AM
  3. Recall previous values on a form
    By Thermalmonster in forum Programming
    Replies: 12
    Last Post: 07-28-2014, 01:54 PM
  4. Recall max value from Table
    By Thermalmonster in forum Programming
    Replies: 2
    Last Post: 07-27-2014, 01:38 AM
  5. Replies: 1
    Last Post: 12-10-2013, 03:15 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