Results 1 to 6 of 6
  1. #1
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    ComboBox

    Hi,

    This is a problem I keep coming back to. How do you write the SQL to show the the associated field in the ComboBox Field and the "list" while storing the Key field. I tried the query builder and came up with the following. Everything is okay except the list is 100+ records long instead of the 16 it is supposed to be.

    Thanks and take care,

    Daryl

    SELECT ContactInformation.FacultyAdvisor, [LU_Instructor]![LastName] & ", " & [LU_Instructor]![FirstName] AS FacultyName FROM ContactInformation INNER JOIN LU_Instructor ON ContactInformation.FacultyAdvisor = LU_Instructor.InstructorID;

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Sounds like this is what you want http://datapigtechnologies.com/flash...combobox3.html

    It's not just the query that needs to be structured right, but the combobox properties.

    RowSource: SELECT InstructorID, LastName & ", " & FirstName AS FacultyName FROM LU_Instructor;
    ControlSource: FacultyAdvisor
    BoundColumn: 1
    ColumnCount: 2
    ColumnWidths: 0";2"
    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
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Hi June,

    Thanks again. I did figure it out, but now I have the reply and link to rememebr how to do it next time

    One other question I am trying to resolve. I have a subform that will not accept new records. When I choose the selection to add a new record to existing records, all fields populate, but it doesn't get saved. Another issue I am sure I resolved before, but right know I am at a loss.

    Thanks and take care,

    Daryl

  4. #4
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Hi Again,

    I think I figured it out. I think is was the parent child fields that were absent. It seems to be working now. Does this make sense?

    Daryl

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    I guess if it does what you want, then it makes sense. I can't know any different without knowing more about db.
    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.

  6. #6
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Thanks June,

    Your replies are always helpful and greatly appreciated.

    Take care,

    Daryl

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

Similar Threads

  1. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  2. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  3. Replies: 6
    Last Post: 07-28-2011, 04:07 AM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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