Results 1 to 5 of 5
  1. #1
    rhubarb is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    76

    Text Box results dependent on combo box selection

    So I have a single form with a combo box that drops down with distinct job addresses from a customer table. I have multiple other text boxes on the same form, some on tabs, as the amount of data to display is a lot. How can I, depending on the selection in the combo box, refresh all the other text boxes to display the information from their corresponding tables? I've tried putting a me.refresh on the combo box but that doesn't seem to refresh all the other fields. I want to link all the text boxes to the job address that is selected and refresh them when that selection changes. Appreciate any help.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    What do you mean by 'corresponding tables'? Why are there multiple tables data displayed on the form? Is this a form/subform arrangement? Why are these textboxes dependent on the combobox?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    rhubarb is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    76
    Well, that might be part of my problem. I have two tables, one with customer info and one with information regarding elevators for each customer. One customer can have multiple elevators. So I'm trying to display data from both the tables on the form so that the user can select from the combo box an address and the corresponding information will appear in the remaining list boxes effectively linking the combo box to all the list boxes.

  4. #4
    rhubarb is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    76
    Actually, I think it's safe to close this thread. I'm going to post in the db design first to get some ideas on how I should do this.
    Thank you.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I presume each elevator can be associated with only one customer.

    Two methods to do what you describe.

    1. multi-column combobox that pulls in all the parts of the address, then expressions in textbox reference columns of the combobox by their index number, index begins with 0 so column 2 is index 1
    =[comboboxname].[Column](x)

    2. include the customer table in the form RecordSource, join type "Include all records from Elevators and only those from Customers that match", then bind textboxes to the fields from Customer table and set them as Locked Yes and TabStop No
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  2. auto fill text box from dependent combo box
    By tommyried in forum Access
    Replies: 6
    Last Post: 06-17-2012, 03:55 PM
  3. Replies: 3
    Last Post: 03-15-2012, 02:27 PM
  4. Replies: 4
    Last Post: 08-16-2011, 05:54 PM
  5. Replies: 3
    Last Post: 02-26-2009, 10:17 AM

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