Results 1 to 5 of 5
  1. #1
    sksmsith2517 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2016
    Location
    California
    Posts
    3

    Combo Box Assigns Correctly. How do I auto populate 3 associated fields?

    I have a Client Form with an AssignedTo field that uses a Combo Box to select the Counselor Name.
    The Combo Box pulls Counselor FirstName from a Query: 'CounselorActiveQ' The query has other fields: License, Fee, & LowFee.
    Is there a way to auto populate the Fee & License, etc after the AssignedTo Field is populated with the FirstName?
    I've just seen another post recently asking much the same question, but I couldn't quite make it apply to my situation.
    The FirstName field is correctly showing and populating. But I cannot figure out how to get the other 3 to populate.
    Thanx in advance for any help.
    Just trying to be helpful for data entry folks,

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    sksmsith2517 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2016
    Location
    California
    Posts
    3
    Yep, Found it, so I typed:
    Private Sub Assigned_To_AfterUpdate()
    Me.[ID Counselor] = Me.Assigned_To.Column(1)
    End Sub

    When I mouse over the Column(1) it shows correct info - yay
    BUT
    when I update the field, it returns;
    Run-time error '2465' ... Can't find the field '|' referred to in your expression. Debug. So when I Debug, it has a yellow arrow and line on the Me.[ID Counselor] line.
    Argh
    Last edited by sksmsith2517; 02-09-2016 at 08:23 PM. Reason: Incomplete

  4. #4
    sksmsith2517 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2016
    Location
    California
    Posts
    3
    THANK YOU. It works. Gotta invoke the correct field. That Baldy Web is priceless. Thank you again.
    As usual, ask and you shall receive, from those who know what they are doing. Yay.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 05-03-2014, 11:00 AM
  2. Report that auto assigns check numbers
    By jonathangpark in forum Reports
    Replies: 11
    Last Post: 04-22-2014, 02:58 PM
  3. Replies: 25
    Last Post: 01-25-2013, 10:26 AM
  4. Replies: 63
    Last Post: 09-16-2011, 04:55 PM
  5. Replies: 2
    Last Post: 12-07-2010, 12:32 PM

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