Results 1 to 2 of 2
  1. #1
    jbarresi is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    3

    How do you create a form that autofills information from multiple tables


    I am creating a student assessment database. I have three tables thus far (as there is only one assessment at this point). One that stores student and teacher information and one that store the scores related to the first assessment. There are two lookup fields in the assessment table. One called ID which is the primary key and looks up ID from the student table and one called teacher which looks up last and first name of teacher in the teacher table.

    Here is what I want. I want a form for easily entering student scores in the assessment table. I want the form to have sort of a lookup field where you can start typing the student's last name (obtained from student information I suppose) and then select it. After you select it, the ID field autopopulates (which is required by referential integrity in the assessment table) and then you can start typing in the scores. The reason for this is because your average person does not want to enter information by typing in a student # because they do not have that readily available. However, the name field is necessary beacuse it is the primary key.

    Hope I was clear. Any help will be greatly appreciated.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Confused - is ID or Name the primary key in student table? Should not use names as primary key.

    Use a multi-column combobox. Review http://datapigtechnologies.com/flash...combobox3.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: 2
    Last Post: 08-27-2012, 09:49 AM
  2. Replies: 2
    Last Post: 08-04-2011, 08:07 AM
  3. Multiple tables to create one Form??
    By Gravity101 in forum Forms
    Replies: 2
    Last Post: 06-02-2011, 06:37 AM
  4. Replies: 1
    Last Post: 08-19-2009, 01:14 AM
  5. Replies: 1
    Last Post: 07-06-2007, 08:27 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