Results 1 to 2 of 2
  1. #1
    WallyZ is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2015
    Posts
    18

    Basic Form Design Assistance with 1 to many; Form to Subform technique

    Given the following schema

    tblStudent
    Student_ID, Surname, Name

    tblSubjects


    Subject_ID, SubjectName

    tblGrades
    Student_ID, Subject_ID, Grade

    qryStudentGrades
    Student_ID, Subject_ID, SubjectName, Grade

    And given the obvious relationships (I hope it's obvious)

    I have used the form wizard to design a simple form (student) & subform (grades) .

    I changed the subform view from a data sheet to a form but then lost the mechanism to navigate between the various grades.

    So I added a combo box to the subform to select the required grade.

    This worked and all the other fields on the subform update on any selection form the combo box and any changes made in the fields are reflected back into the database.

    So far so good.

    However where there is no record of a grade for a particular subject against a student then there is no entry in the combo box list and so it cannot be selected, which prevents a new record from being created.

    I'm new to Access and thought this must be a familiar issue.

    So I don't have to re-invent the wheel what method should I use to create a new grade record in the grade subform where a previous record did not exist?

    If a new grade record is created it must be against a valid subject.

    Any sample code with something similar would be helpful!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Look at the combobox properties, it probably has LimitToList = Yes.
    If you switch it to NO, I think you can add a new entry.

    There are samples of various combo things here.
    and here

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

Similar Threads

  1. Database Design Assistance would be greatly appreciated
    By Zephyx in forum Database Design
    Replies: 4
    Last Post: 06-27-2013, 12:31 PM
  2. Form and Subform design question
    By Leonidsg in forum Database Design
    Replies: 3
    Last Post: 03-06-2013, 06:09 AM
  3. Basic Form Design
    By ccordner in forum Forms
    Replies: 3
    Last Post: 01-25-2012, 04:46 PM
  4. New to Access - Looking for some basic assistance
    By Dave_EntryIT in forum Access
    Replies: 2
    Last Post: 03-27-2011, 11:25 PM
  5. Assistance on DB Design required - please
    By Optimus_1 in forum Database Design
    Replies: 13
    Last Post: 07-05-2010, 04:38 PM

Tags for this Thread

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