elliot315
Mr. Question
- Local time
- Today, 16:55
- Joined
- Jun 3, 2007
- Messages
- 98
Ok here it is my situation, I have a cascading combo box where I select a city and the other combo box requery and update with the zip codes of that city. Some cities have one zip code, and others have more than one. I want the zip code combo box to put the zip code automatically when a city only has one zip code, and when a city have more than one zip code... to make the combo to dropdown to present the different zip codes.
The other thing is to make the combo box with the name of the cities not to repeat the name of the city in its list, but this is because the table is that way.. I'll put an example of the table where the combo boxes get their values
ID City Zip Code
--------------------------------
1 Aguada 00602
2 Adjuntas 00603
3 Aguadilla 00604
3 Aguadilla 00605
4 Añasco 00606
As you can see in this brief preview "Aguadilla" has two zip codes "00604" and "00605" and the same ID number so the zip code combo box present both of them, but it will appear twice in the City Name Combo Box.. do I have to make two tables to manage this situation?
Thank you in advance... I tried to be as clear as possible.
The other thing is to make the combo box with the name of the cities not to repeat the name of the city in its list, but this is because the table is that way.. I'll put an example of the table where the combo boxes get their values
ID City Zip Code
--------------------------------
1 Aguada 00602
2 Adjuntas 00603
3 Aguadilla 00604
3 Aguadilla 00605
4 Añasco 00606
As you can see in this brief preview "Aguadilla" has two zip codes "00604" and "00605" and the same ID number so the zip code combo box present both of them, but it will appear twice in the City Name Combo Box.. do I have to make two tables to manage this situation?
Thank you in advance... I tried to be as clear as possible.
Last edited: