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

    Have forms with auto-complete/combo box option for cells

    Full disclosure...I'm very tech savy but Access ignorant.

    Scenario: I am building a database to store student assessment information. I have a table with student information, a table with teacher information, and tables which will store the student's scores on a certain assessments.



    Q1: I have a field in the assessment table for Teacher ID and Student ID which are linked to their respective tables. What I want to do is create a form for inputting the assessment data but the fields for teacher ID and Student ID to auto-complete or be combo boxes, I don't care which. That is, when a person is entering a student's scores, and go to enter their ID, they won't have to type the whole number out and hope they dont make any mistakes, they will essentially have a list of choices to choose from. Or as they type, the corresponding number will filter down. I already have refferential integrity on so that they can't enter an invalid ID in either field but I want them to have the choice.

    Q2: In an assessments table, there is a 1-1 correspondence btw student ID's because only one student can have one score on a particular assessment. However, clearly one teacher can be tagged to several student's assessment scores. Can anyone think of a better way to tag the teacher to multiple student's scores without having fields in the assessment table for teacher ID which is repeated multiple times.

    Thanks for any insight that can be offered.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Q1 should be inherently occurring if you set up the field in the table to be a look up field. When this look up field type is put onto a form it will automatically be a combobox style field.

    Q2 you must repeat the teacher id in each record; perhaps you wish to set up a form that will auto enter the teacher ID as you enter the score - just for productivity's sake - but in terms of logic you need that value in the record.

  3. #3
    jbarresi is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2012
    Posts
    3
    Q1 - You're Awesome! Stupidly, I had not created the fields as Look up fields. Since changing it, I'm set.

    Q2 - I thought that for logic sake the records would have to be there but how do I create a form that auto-enters data?

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Overall it is an issue of creativity. But the technical underpinning is:
    * put the value you want auto entering into the header of the form - the db has to know this value.
    * when in the record of the form and entering something else - in the AfterUpdate Event (or some appropriate event) then call that value down from the header i.e. Me.TeacherID = Me.headerTeacherID The TeacherID in the record doesn't have to be visible.

    There is of course other ways to implement this. You could have a form/subform arrangement. It depends on your creativity and how you want to display info for the user experience.

    Hope this helps.

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

Similar Threads

  1. Auto complete between tabs in Form
    By Hamm in forum Forms
    Replies: 3
    Last Post: 10-25-2012, 08:38 AM
  2. auto complete fields
    By mona in forum Access
    Replies: 3
    Last Post: 05-09-2012, 07:41 AM
  3. Replies: 3
    Last Post: 11-04-2011, 01:50 PM
  4. Replies: 1
    Last Post: 03-31-2011, 02:51 AM
  5. Auto Complete Data
    By manicamaniac in forum Access
    Replies: 5
    Last Post: 09-14-2010, 03:38 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