S
Stephen Glynn
I'm trying to design a database that holds details of clients and their
'disability groups'. For my purposes there are 10 disability groups,
which aren't mutually exclusive (someone might be blind as well as deaf).
My initial reaction was to have ten disability group fields (yes/no) as
part of my tblClients. However, I've got an idea that normalisation
theory says I should have a tblClients, a tblDisabilities and a linking
tblClientsDisabilities.
First question: which was right? My initial reaction or my idea about
normalisation theory?
Second question: if I do need the three tables, I'm not completely sure
how I should handle this on the form I'll need so people can enter
details of clients and their disabilities. I'd certainly like the form
to contain ten check boxes but I'm not clear how I handle this.
You'll presumably enter the client's name, address and so forth on the
main form, but how do I then take the autonumber ClientID I've just
generated for him and transfer it to the subform to create an
indeterminate number of rows in tblClientsDisabilities, based on the
number of check boxes I've ticked for his various disabilities?
Or was my initial reaction right, and I'm just complicating the matter
needlessly?
Steve
'disability groups'. For my purposes there are 10 disability groups,
which aren't mutually exclusive (someone might be blind as well as deaf).
My initial reaction was to have ten disability group fields (yes/no) as
part of my tblClients. However, I've got an idea that normalisation
theory says I should have a tblClients, a tblDisabilities and a linking
tblClientsDisabilities.
First question: which was right? My initial reaction or my idea about
normalisation theory?
Second question: if I do need the three tables, I'm not completely sure
how I should handle this on the form I'll need so people can enter
details of clients and their disabilities. I'd certainly like the form
to contain ten check boxes but I'm not clear how I handle this.
You'll presumably enter the client's name, address and so forth on the
main form, but how do I then take the autonumber ClientID I've just
generated for him and transfer it to the subform to create an
indeterminate number of rows in tblClientsDisabilities, based on the
number of check boxes I've ticked for his various disabilities?
Or was my initial reaction right, and I'm just complicating the matter
needlessly?
Steve