Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:46:19+00:00 2026-06-15T02:46:19+00:00

I have a class registration database for our organization. The major things it tracks

  • 0

I have a class registration database for our organization. The major things it tracks are: user info (name etc), track info (ie your major ex: biology), and course info (what courses are for what track).

So the data structure looks like this.

tblUsers
UserID (PK)
FirstName
LastName
.
tblUserTrack
UserTrackID (PK)
UserID (FK) - links to tblUsers
TrackID (FK - links to tblTrack).
.
tblTrack
TrackID (PK)
TrackName
.
tblCourses
CourseID (PK)
CourseName
TrackID (FK links to tblTrack)
.
tblRegistrationNew
RegistrationID (PK)
UserTrackID (FK links to tblUserTrack)
Grade
CompletionDTTM

The registration form has 3 elements: The parent form has the user demographics
The track subform has the user/track info, linked to the parent form by UserID. You can add tracks to the user without a problem (In our org they can have multiple tracks, for example biology and chemistry).

The goal is for the third form to populate the registration information based on what the user inputs. But whenever I add in the registration table to the query it does not update (which makes sense from a SQL point of view).

Is it possible to update/insert rows to the registration table when I update the track table? If so how? I have MS SQL Server and C#.NET experience so I’m not completely clueless (just mostly).

Also I found this link to a well done registration database but it does not have the feature I need. http://office.microsoft.com/en-gb/templates/classroom-management-database-TC001018407.aspx?CategoryID=CT101426031033&av=ZAC000&AxInstalled=1&c=0

Edit: getting reasonably close. I realized I can do a left join to the registration table but I can not update records in the form. The query is here:

SELECT tblUserTrack.UserTrackID, tblUserTrack.UserID, tblUserTrack.TrackID, tblCourses.[Course Titles], tblRegistrationNew.Grade, tblRegistrationNew.CompleteDTTM
FROM (tblUserTrack INNER JOIN tblCourses ON tblUserTrack.TrackID = tblCourses.TrackID) LEFT JOIN tblRegistrationNew ON tblUserTrack.UserTrackID = tblRegistrationNew.UserTrackID;

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:46:21+00:00Added an answer on June 15, 2026 at 2:46 am

    So there wasn’t really a good solution. I tried various modifications of the database design but what I have written above is already well designed. For my needs I had a single form with two subforms. The main form had student demographics such as name, address. The first subform was the track (basically the degree ie biology) in a dropdown, which populated the tblUserTrack table. I then put code in the AfterInsert event to generate new rows in the tblRegistration table when the user inserts new rows.

    Private Sub Form_AfterInsert()
    
        Dim strSQL As String
    
        strSQL = "INSERT INTO tblRegistration (UserTrackID, CourseID) " & _
            "SELECT tblUserTrack.UserTrackID, tblCourses.CourseID FROM tblUserTrack INNER JOIN " & _
            "tblCourses ON tblCourses.TrackID = tblUserTrack.TrackID " & _
            "WHERE tblUserTrack.UserID = " & UserID.Value & "AND tblUserTrack.UserTrackID NOT IN " & _
            "(SELECT tblRegistration.UserTrackID FROM tblRegistration INNER JOIN tblUserTrack ON tblUserTrack.UserTrackID = tblRegistration.UserTrackID " & _
            "WHERE tblUserTrack.UserID = " & UserID.Value & ")"
    
        DoCmd.RunSQL (strSQL)
    
    
    End Sub
    

    After this it worked satisfactorily. The only thing I did not do is handle the situation when the track changed (ie from biology to chemistry), in this case I instructed the user just to delete the old track (biology) and insert a new track (chemistry). The long and short of it after many many hours of research is that there really isn’t a way to do a ‘cascade insert’ which is what i needed to do, at least to the best of my knowledge. At least now I know what the code is doing in terms of the SQL execution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made user registration which includes (name, password, email, phone no) and now
I am working on a Class Registration database design. Courses have multiple sections. Each
I have the following structure otsg > class > authentication.php > database.php > user.php
I have an extended UserProfile model in django: class UserProfile(models.Model): user = models.ForeignKey(User, unique=True)
My idea: I have a database of users, each user has an autoincremented id
i'm trying to define a User registration class and this is the function i
I have a registration form that when the user enters in valid registration data
I have a user submission form, and the user supplies his name and email.
I use Grails 2.0.0.RC2 and I have an User class like this: class User
I have a user registration form in my Django application which collects additional data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.