evergrean100
Technical User
I have a table that has 150 fields in an Access 2000 database and it will have about 1000 records inserted into the database. It has simple number rating questions such as:
The wide database structure has alot of fields with 150 inserts..
I want to make the table structure more efficient like this:
I cant seem to figure out how I would do the more efficient longer data structure way with my form and insert statements especially the sql insert part.
Please advise.
Code:
Question Choose One Rating
1-How would you rate redRock1? 1 2 3
2-How would you rate rockFrm? 1 2 3
3-How would you rate greRock3A? 1 2 3
...147 more questions here
The wide database structure has alot of fields with 150 inserts..
Code:
...form part
input name='r1' type='radio' value='1'>1
input name='r1' type='radio' value='2'>2
input name='r1' type='radio' value='3'>3
input name='r2' type='radio' value='1'>1
input name='r2' type='radio' value='2'>2
input name='r2' type='radio' value='2'>2
input name='r3' type='radio' value='1'>1
input name='r3' type='radio' value='2'>2
input name='r3' type='radio' value='2'>2
...147 more to go...
.....insert into database
insert into tblRocks (r1,r2,r3....147 more)
values (#form.r1#, #form.r2#, #form.r3#, ....147 more)
This gives me data structure like this:
tableID r1 r2 r3 ....147 more here
1 1 3 2 ....147 more here
I want to make the table structure more efficient like this:
Code:
tableID RNumber rating
1 1 1
1 2 3
1 3 2
...147 more here
2 1 3
2 2 2
2 3 2
...etc
I cant seem to figure out how I would do the more efficient longer data structure way with my form and insert statements especially the sql insert part.
Please advise.