G
Guest
I have a Programs database to keep track of our recreation participants. I
originally designed this database with a Participants Table as the main table
to hold data. When I first designed the DB, I had tons of columns to hold
our Swim Lesson records for each participant who took swimming lessons. Now
rather needing to continually add columns for each set a of lessons a child
takes, I'd like to add a subform to collect the data into a Swim Lessons
Detail Table. The Participants Table is autonumbered with that column
(ParticipantID) being the Primary Key. The Swim Lessons Detail Table is also
autonumbered with thaat column (SLID) being the primary key for that table.
The Swim Lessons Detail Table has a column, ParticipantID, to link it to the
Participant Table...this field is designated a Number, Long Integer. MY
PROBLEM: When I try to make a subform to enter data into the Swim Lesson
Detail Table on the Program Data Entry Rorm that feeds into the Participants
Table, the ParticipantID comes up with an "#Error" and won't link the data.
I've tried making tables with the SLID and ParticipantID included to link the
data, and queries and any combo of the two to try to get the subform to work.
I've had success with other subforms in other databases I've made, but can't
seem to figure out what I'm doing wrong. The only difference in this
database that I can come up with over the other databases I've had success
with, is that it must maintain the Participants as unique... there is no
repeating of that data. With that #Error message in the ParticipantID field
of the subform, I'm thinking I'm having trouble with that unique number or
something. Can anyone figure out what I'm doing wrong?
Thanks!
Kass
originally designed this database with a Participants Table as the main table
to hold data. When I first designed the DB, I had tons of columns to hold
our Swim Lesson records for each participant who took swimming lessons. Now
rather needing to continually add columns for each set a of lessons a child
takes, I'd like to add a subform to collect the data into a Swim Lessons
Detail Table. The Participants Table is autonumbered with that column
(ParticipantID) being the Primary Key. The Swim Lessons Detail Table is also
autonumbered with thaat column (SLID) being the primary key for that table.
The Swim Lessons Detail Table has a column, ParticipantID, to link it to the
Participant Table...this field is designated a Number, Long Integer. MY
PROBLEM: When I try to make a subform to enter data into the Swim Lesson
Detail Table on the Program Data Entry Rorm that feeds into the Participants
Table, the ParticipantID comes up with an "#Error" and won't link the data.
I've tried making tables with the SLID and ParticipantID included to link the
data, and queries and any combo of the two to try to get the subform to work.
I've had success with other subforms in other databases I've made, but can't
seem to figure out what I'm doing wrong. The only difference in this
database that I can come up with over the other databases I've had success
with, is that it must maintain the Participants as unique... there is no
repeating of that data. With that #Error message in the ParticipantID field
of the subform, I'm thinking I'm having trouble with that unique number or
something. Can anyone figure out what I'm doing wrong?
Thanks!
Kass