• Class Entry Form (2K – SP3)

    Author
    Topic
    #450430

    I am creating a Db to track student attendance in classes. I have the following tables (tblCourseName, tblClasses, tblAttendance, tblStudents) and relationships (1:M tblCourseNames:tblClasses, 1:M tblClasses:tblAttendance, 1:M tblStudents:tblAttendance). How do I create a Form that will let me select a Student from tblStudents when someone registers for a class? The Form I currently have “Names In Class” will not let me select a student from a combo list. I am attaching a zipfile with screenshots of the query and form. I am a novice user so I will have a problem writing/understanding any code. I hope this is something that can be done fairly easily.

    Also, on another issue. When I am working in this Db, Access shuts down frequently. I have tried the compact/repair and creating a new blank Db and importing the tables, queries, etc. into that . It is still shutting down. Any other suggestions?

    Thank you in advance for your help.

    Viewing 0 reply threads
    Author
    Replies
    • #1106523

      The main form should be based on tblClasses.
      The subform should be based on tblAttendance, or if you prefer on a query based on tblAttendance and tblStudents. You can use a combo box bound to intStudentID_FK in tblAttendance, with tblStudents as row source, to select a student in this subform.

      See post 364,203 for an example of how to handle data entry for a many-to-many relationship with a main form and subform.

      • #1106525

        Thank you Hans, I will try your recommendations. How do I “- Set the Subdatasheet Name property of all tables to [None].” as noted in your linked post?

      • #1106533

        Thank you so much Hans! All of your suggestions worked! My class registration form works like a charm and Access quit shutting down!

        Woohoo!

    Viewing 0 reply threads
    Reply To: Reply #1106530 in Class Entry Form (2K – SP3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel