Results 1 to 6 of 6
  1. #1
    gs13 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    3

    Pull second field based on first field selection

    Hi All,



    I have some access experience, but it's been awhile, so am re-learning. I am trying to pull a query or table where I let the user make the selection for the first field, and based on that field, an associated field is also pulled.

    I have a database with numerous fields, all associated with kids in a school. Based on which class they are taking, we have a notes field for each class. I want the user to be able to pull the class they want to see, and the notes field associated with it. They are always side by side in the database. (notes to the right of the class).

    Any suggestions would be helpful.

    Thanks!
    gina

  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
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    gs13 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    3
    Quote Originally Posted by pbaldy View Post
    Similar, but each class has it's own column, and then another column next to it with a notes field. Example:

    ClassA ClassANotes ClassB ClassBNotes

    So if I choose ClassA, I also want to display ClassANotes. Seems like I would have to write an If/Then statement that refreshes the class name/notes field name each time it runs through to check for each class. I was thinking I could create a lookup table with the class and class notes field names, but still couldn't figure out how to get that to help this process. It doesn't help that this is a part time project, and I can only get back to it about once/week. I keep losing ground. Thanks for the help!

  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
    Your table isn't normalized. If you fix that it should work.

    http://r937.com/relational.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    gs13 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    3
    Thank you for the information!

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem and welcome to the site by the way!
    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: 1
    Last Post: 06-26-2015, 02:12 PM
  2. Replies: 4
    Last Post: 01-23-2014, 04:34 PM
  3. Replies: 3
    Last Post: 04-24-2013, 08:29 AM
  4. Replies: 2
    Last Post: 03-07-2013, 04:50 PM
  5. Replies: 10
    Last Post: 11-21-2011, 02:56 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