R
Ron
Using Access 2003 I created a table called tblcustomer. The table has seven
fields: *CustomerID, Fname, Lname, Address, City, State, & Zip. When entering
a customer record I would like to be able to select the zip code in a drop
down list box. Once the zip code is selected I would like to be able to save
the correct matching city, state & zip for that record in the tblcustomer.
Since all my customers are local there is a lot of redundentcy on the city,
state & zip fields. I thought it would be best to have seperate tables for
these fields - tblcity, tblstate, tblzip. I now need a table to match up the
correct zipcode to city & state. The table is called tblctystzp. The fields
in this table are *ctystzpID, city, state & zip. Each one of these fields can
select the correct info from a drop down box which is reference to tblcity,
tblstate & tblzip. Should I NOT have the city, state & zip fields in the
tblcustomer and only a reference from each record in the tblcustomer to
tblcitystzp. The relationship between the tblcustomer & tblctystzp tables
will be a many to many, so I now need a junction table. Am I going about this
the correct way?
fields: *CustomerID, Fname, Lname, Address, City, State, & Zip. When entering
a customer record I would like to be able to select the zip code in a drop
down list box. Once the zip code is selected I would like to be able to save
the correct matching city, state & zip for that record in the tblcustomer.
Since all my customers are local there is a lot of redundentcy on the city,
state & zip fields. I thought it would be best to have seperate tables for
these fields - tblcity, tblstate, tblzip. I now need a table to match up the
correct zipcode to city & state. The table is called tblctystzp. The fields
in this table are *ctystzpID, city, state & zip. Each one of these fields can
select the correct info from a drop down box which is reference to tblcity,
tblstate & tblzip. Should I NOT have the city, state & zip fields in the
tblcustomer and only a reference from each record in the tblcustomer to
tblcitystzp. The relationship between the tblcustomer & tblctystzp tables
will be a many to many, so I now need a junction table. Am I going about this
the correct way?