Thanks for your help in advance you have saved me an a number of occasions now.
I am about to built quite a sizable database and need help with the table structure. The database will contain lots of values of chemical tests from rock samples.
If I was to have each chemical that could be conceivably tested for it would be 200+ only 10% of the columns would be populated by a value. The chemicals do have classes however and a previous database has worked by having about 15 tables representing different chemical classes in which each column is a different chemical.
I think its better to have a lookup table of all the possible chemicals and then store the values in row form so that you have the same sample repeated in many rows where each row is a different chemical and then using crosstab queries to tabulate the data later on.
My only concern is data entry surely its going to be a pain to add data through the row method as opposed to the column method.
Is there an easy way to add data using forms in this method and is there any vba to convert data from columns into rows. i.e.
B C
1 q r
2 y n
into
b q
1 c r
2 b y
2 c n
Many Thanks for your help.
Oliver
I am about to built quite a sizable database and need help with the table structure. The database will contain lots of values of chemical tests from rock samples.
If I was to have each chemical that could be conceivably tested for it would be 200+ only 10% of the columns would be populated by a value. The chemicals do have classes however and a previous database has worked by having about 15 tables representing different chemical classes in which each column is a different chemical.
I think its better to have a lookup table of all the possible chemicals and then store the values in row form so that you have the same sample repeated in many rows where each row is a different chemical and then using crosstab queries to tabulate the data later on.
My only concern is data entry surely its going to be a pain to add data through the row method as opposed to the column method.
Is there an easy way to add data using forms in this method and is there any vba to convert data from columns into rows. i.e.
B C
1 q r
2 y n
into
b q
1 c r
2 b y
2 c n
Many Thanks for your help.
Oliver