Table Linking and Queries??
- From: "Scott Viney" <scott@xxxxxxxxxx>
- Date: Thu, 27 Oct 2005 14:47:42 -0500
Afternoon All,
I have created a table for states of a country. To me this table is like a
store for information. I wont be updated by user interaction.
StateID StateName StateTelephone Code
1 Cundinamarca 1
2 Cordoba 914
I have one table for clients and in this table I have StateID, I also have
one table for Offices which I have added StateID as well.
In my relationships table how do I link them. Do I add one States table and
then link to both the clients and offices table with referential integrity?
Or do I just ignore referential integrity?
Which leads onto the next question I have a query that brings all the tables
to create my report. How do I have to link them in the query? Or should it
be automatic because of the relationships I have already setup?
In my report I want to show the telephone codes which relate to the state
for the office and the client which could be different. But I keep getting
errors on the report.
I thought this was the best way of doing this as I wouldnt duplicate the
data for the phone code in multiple tables, but in the end I cant make it
work.
What am I doing wrong?
Scott V
.
- Follow-Ups:
- Re: Table Linking and Queries??
- From: Vincent Johns
- Re: Table Linking and Queries??
- Prev by Date: Re: Selecting the last record (2nd) of a duplicate record and moving
- Next by Date: Ideas on different office implementations
- Previous by thread: Selecting the last record (2nd) of a duplicate record and moving
- Next by thread: Re: Table Linking and Queries??
- Index(es):
Relevant Pages
|