Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Sep 2002
    Location
    Brookings, South Dakota, USA
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Automatically add records in related table (2003)

    Is it possible to have records automatically entered in a details table? I have a tblstudents and a related tblclassdetail. I also have a tblclass that is the definition table for tblclassdetails. Many of the classes are mandatory, some are optional. We want the mandatory classes to be entered in the tblclassdetails automatically when a combo box is changed to a certain value, so the person doing data entry only has to enter the semster taken and the grade. How do I go about doing that? Thanks, Tammy

  2. #2
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Vancouver, Br. Columbia, Canada
    Posts
    632
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Automatically add records in related table (2003)

    There is nothing automatic that you can use -- you must code it using VBA.

    I would probably create a "default classes" table that listed the mandatory classes for each course. Then I would execute an append query in the AfterUpdate event of the combo box. Finally, I would invoke a unique index on the tblClassDetail to prevent a student from registering for the same course more than once (to account for inadvertently selecting the combo box more than once).
    --------------------------------------------------
    Jack MacDonald
    Vancouver, Canada

  3. #3
    Lounger
    Join Date
    Sep 2002
    Location
    Brookings, South Dakota, USA
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Automatically add records in related table (2003)

    Thanks for your reply. <img src=/S/smile.gif border=0 alt=smile width=15 height=15> This is just what I needed!! Tammy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •