P
PAULinLAOS
What do you do if you want to have more than 255 fields in 1 table? Is there
some trick to making one, or is it impossible?
Is it a bad structure to have that many fields? OK, my data entry form must
look like this:
ID Country 1Day 2Day 3Day 4/moreDay Total
1 America 4 0 2 4 10
2 Armenia 1 0 0 0 1
3 Brazil 0 2 1 0 2
This form has 82 countries on it. The columns stand for length of stay at a
guesthouse. It's used to collect data from guesthouses on how many people
stayed, their nationality and length of stay.
I started making a table like this:
Field1 Field2 Field3 Field4 Field5 Field6
....
Amer1day Amer2day Amer3day Amer4day Arm1day Arm2day....
This would allow me to make a data entry form that looks just like the
pencil and paper one. But too many fields! With 82 countries that's 328
fields.
I tried a different database structure where I put all of the country names
in one table and another table that would record the country ID and have 4
columns for the lenght of stay like this:
ID CountryID 1Day 2Day 3Day 4/moreDay Total
1 1 4 0 2 4 10
2 4 1 0 0 0 1
3 3 0 2 1 0 2
But when making a form, I have to enter in, via a combo box, the country
name, which makes data entry very long.
Any ideas? It seems like a simple problem but one that I really can't figure
out.
PaulinLaos
some trick to making one, or is it impossible?
Is it a bad structure to have that many fields? OK, my data entry form must
look like this:
ID Country 1Day 2Day 3Day 4/moreDay Total
1 America 4 0 2 4 10
2 Armenia 1 0 0 0 1
3 Brazil 0 2 1 0 2
This form has 82 countries on it. The columns stand for length of stay at a
guesthouse. It's used to collect data from guesthouses on how many people
stayed, their nationality and length of stay.
I started making a table like this:
Field1 Field2 Field3 Field4 Field5 Field6
....
Amer1day Amer2day Amer3day Amer4day Arm1day Arm2day....
This would allow me to make a data entry form that looks just like the
pencil and paper one. But too many fields! With 82 countries that's 328
fields.
I tried a different database structure where I put all of the country names
in one table and another table that would record the country ID and have 4
columns for the lenght of stay like this:
ID CountryID 1Day 2Day 3Day 4/moreDay Total
1 1 4 0 2 4 10
2 4 1 0 0 0 1
3 3 0 2 1 0 2
But when making a form, I have to enter in, via a combo box, the country
name, which makes data entry very long.
Any ideas? It seems like a simple problem but one that I really can't figure
out.
PaulinLaos