Results 1 to 4 of 4
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    Populating textboxes based on criteria of combobox

    Hello,

    Here is my scenario. I have a table(tbl_Queue) with 6 fields(Queue, Rep, First Name, Last Name, SSN, Date) and these fields are all unique except for the Rep field. And that is the field I want in my combobox. Once a user selects the name of the Rep I want it to populate the textboxes with the information of the first record. And I added record selector buttons on the form so the user can navigate through the records containing all the criteria based on the Rep. But I just cannot figure out how to do this. Do the textboxes have to be bound? I tried using the Dlookup function and doing it and it just shows all the records to navigate to. Your help would be greatly appreciated.
    The combobox and texbox names are:

    cmboRep


    txtSSN
    txtQueue
    txtFirstName
    txtLastName
    txtDate

    Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Start with a bound form and select #3 when adding the combo box.

  3. #3
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283
    The textboxes need to be bound also?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sorry for the delay. YES, the Text Boxes should be bound as well. Is there some reason you don't want bound controls?

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

Similar Threads

  1. Replies: 0
    Last Post: 10-04-2017, 01:13 PM
  2. Replies: 3
    Last Post: 04-07-2014, 04:10 PM
  3. Replies: 3
    Last Post: 05-16-2013, 08:21 PM
  4. List populating based on criteria
    By Stedman in forum Forms
    Replies: 3
    Last Post: 08-06-2011, 12:46 PM
  5. Problem filling textboxes from combobox
    By reidn in forum Forms
    Replies: 1
    Last Post: 06-23-2011, 05:06 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