Results 1 to 4 of 4
  1. #1
    whitneynf08 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    5

    If...Then type statement for combo boxes in table

    I would like to have a field display only certain information in a combo box based on what is selected in a previous data field.



    The first fields is "Highest Degree Level Obtained" which contains the options of Associate's, Bachelor's, Master's, Doctorate's, and Certification. Based on the selection, I want "Degree Earned" to display just those types of degrees offered. The degrees are in a separate table called "Degrees" and each type of degree is in its own field labeled accordingly.


    If I just have all degrees listed at once, this is the Row Source formula: SELECT [Degrees].[ID], [Degrees].[Degrees] FROM Degrees;


    I am thinking it would be something like this:


    SELECT [Degrees].[ID], [Degrees].[Masters] FROM Degrees IF SELECT [Information].[Highest Degree Level Obtained] = "Master's";


    How far off am I or is this even possible?


    Thank you.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Pretty far off. That won't work.

    Don't really understand structure of the Degrees table. Show its exact structure and sample records.

    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
    whitneynf08 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    5
    I have a table that has a field listing all the degree offered at the university. It is used in the combo box I currently have set up. There are Asso., Bach, Masters, doctoral, and certificates listed. The previous field ask the user for the type of degree i.e. asso, bach, masters..... from a combo box. When they select the type of degree, I would like the next field to populate with only the corresponding degree. So if a user selects masters, when they drop down the next field the only degrees they will see are the masters degrees offered instead of all the degrees.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Wait, can't do this in table. Dependent comboboxes must be on a form. Review: http://datapigtechnologies.com/flash...combobox2.html
    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: 11
    Last Post: 08-29-2011, 01:45 AM
  2. Pivot table and combo boxes
    By compooper in forum Forms
    Replies: 1
    Last Post: 08-02-2011, 01:10 PM
  3. sql statement with 3 combo boxes
    By benjammin in forum Queries
    Replies: 4
    Last Post: 06-09-2011, 12:22 PM
  4. Replies: 3
    Last Post: 12-17-2010, 06:31 AM
  5. Find as you type Combo boxes in MS Access
    By HAPPYWITHU in forum Programming
    Replies: 13
    Last Post: 06-03-2010, 08:41 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