Hello,
I've run into a smidge of a programming problem on my form, and I'd appreciate any help whatsoever.
I have a table called "Class" with a subform called "ClassSeat". The ClassSeat subform has the following fields: ClassSeatID (AutoNumber), ClassID, StudentID, and SeatNumber. The field of interest on the Class form is ClassSize. I want to be able to submit a ClassSize on the main form, and then have that many records created in ClassSeat, updating the SeatNumber only. Basically, if ClassSize = 20, then the table should look something like:
ClassSeatID | Class ID | StudentID | SeatNumber
000001 --------null---------null---------1-----
000002 --------null---------null---------2-----
...
000020 --------null---------null---------20----
After looking around the web, I've been led to believe that this might involve a For Loop statement. Could anyone run me through the syntax for my particular scenario, or give me any tips? Many, many thanks in advance!
I've run into a smidge of a programming problem on my form, and I'd appreciate any help whatsoever.
I have a table called "Class" with a subform called "ClassSeat". The ClassSeat subform has the following fields: ClassSeatID (AutoNumber), ClassID, StudentID, and SeatNumber. The field of interest on the Class form is ClassSize. I want to be able to submit a ClassSize on the main form, and then have that many records created in ClassSeat, updating the SeatNumber only. Basically, if ClassSize = 20, then the table should look something like:
ClassSeatID | Class ID | StudentID | SeatNumber
000001 --------null---------null---------1-----
000002 --------null---------null---------2-----
...
000020 --------null---------null---------20----
After looking around the web, I've been led to believe that this might involve a For Loop statement. Could anyone run me through the syntax for my particular scenario, or give me any tips? Many, many thanks in advance!