I have two tables called Enrollments and Payments. Because of our recuring billing, each enrollment can have multiple payments. They have a one to many relationship.
Is there a way that I can find all the records in the Enrollments table where the EndDate is null, and add a new payment record with a date that I can enter with a parameter value? So, if I have 5 enrollments that have an end date null value, then 5 new records would appear in the payments table each with the same date that I specify and all linked to their respective enrollments.
If it is not possible, please suggust alternative methods. Thanks!