Results 1 to 4 of 4
  1. #1
    maxstead is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Posts
    2

    How to populate text box based on Combo Box


    I have looked for quite some time, and I know this is simple as I accomplished it years ago (when much younger ;-)

    I have a form based on a table call players. I also have a table called teams that contains team names and divisions (only two fields)

    On the player form, I have a lookup on a combo box that allows the user to choose a team name for the player in question. What I am trying to do is to have the Division text box auto populate based on the entry in the teams table.

    So, an example.....Choose "Magic Muffins" in the drop down list, and I want A Division to auto fill on the form. (both Magic Muffins and A Division are from the team table- not the player table).

    I got as far as going to control source, expression builder, then choosing tables, team table and choosing Division. That returns a #Name - becuase (I think) that it does not know the relationship between team name and team division in this form:-)

    please help.....

  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,521
    Is this what you're trying to do?

    BaldyWeb - Autofill
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    maxstead is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2011
    Posts
    2
    Yes, that is exactly what I am trying to do - any way to do it without "coding" :-) It's been a long time! I am using 2007 if that helps any.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Well, the method to display the related value doesn't require code.
    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: 9
    Last Post: 07-20-2015, 10:55 AM
  2. Replies: 8
    Last Post: 05-17-2011, 04:41 PM
  3. Replies: 4
    Last Post: 01-24-2011, 07:11 PM
  4. populate boxes based on combo box choice
    By Mattm1958 in forum Forms
    Replies: 13
    Last Post: 08-30-2010, 02:09 PM
  5. Use a combo box to populate a text field
    By niesenj in forum Forms
    Replies: 2
    Last Post: 01-29-2010, 01:57 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