Results 1 to 3 of 3
  1. #1
    scoutwes is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    4

    Updating Text Boxes based on Dropdown Selection

    I've got 6 text boxes to populate based on the selection of the users choice in a Combo box. The combo box is populated by a query with 6 fields.


    I've got the following code placed in the combo boxes "after update" event code. Currently, the first two boxes (requestor and grade) are working great but the other 4 fields won't populate.


    Me.Requestor = Me.Requestor_Lookup.Column(0)
    Me.Grade = Me.Requestor_Lookup.Column(1)
    Me.Org = Me.Requestor_Lookup.Column(2)
    Me.Office_Symbol = Me.Requestor_Lookup.Column(3)
    Me.Email= Me.Requestor_Lookup.Column(4)


    Me.PhoneNumber = Me.Requestor_Lookup.Column(5)


    Any ideas what I can do to fix this?

  2. #2
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    What's the rowsource for the combobox? The table or query has to include all 6 of those fields.
    Also the combobox ColumnCount property must be 6.

  3. #3
    scoutwes is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    4
    Quote Originally Posted by davegri View Post
    What's the rowsource for the combobox? The table or query has to include all 6 of those fields.
    Also the combobox ColumnCount property must be 6.
    Thanks, this answer solved my problem! I had forgotten to set the column count to 6. I knew it was something simple that I was just overlooking.

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

Similar Threads

  1. Replies: 13
    Last Post: 12-12-2016, 12:55 PM
  2. Hiding Text Boxes Based On User Selection VBA
    By something in forum Programming
    Replies: 10
    Last Post: 09-26-2016, 02:02 PM
  3. Replies: 2
    Last Post: 06-25-2013, 08:35 AM
  4. Replies: 6
    Last Post: 02-24-2011, 03:24 PM
  5. Replies: 2
    Last Post: 08-03-2010, 10:16 AM

Tags for this Thread

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