Real Wally
Registered User.
- Local time
- Today, 22:47
- Joined
- Jan 28, 2003
- Messages
- 107
Dear Access forum members,
My apologies for this very long first posting on this forum that has been extremely useful in getting where I am now with Access (I'm using Access97). I’ve been struggling with the design of a database for a few weeks now and although at first I thought things went pretty smooth and I learned a lot I have in fact not made a lot of progress. I am very confused with the relations between tables. All tables are now normalized (I think) as far as possible and I've ended up with many tables that are in a one-to-many relationship. Several tables, like e.g. tblCities and tblCountries connect to several tables where I need to included addresses. All these tables have look-up values. When I do queries now I do not get the results that I expect. I retrieve too many files from some tables but miss others so obviously something is not correct. I've been going through lots of questions and answers on this forum and although many things are slowly beginning to make sense I haven't been able to distill the solution to my problems. Is there someone willing to help me on my way?
I'll try to give a better description of my database. As you may understand from the tables listed below, an application will give rise to several publications, the agency dealing with an application is not necessarily the same one as the agency dealing with the publication. To further complicate things, we'll use multiple agent from the various agency, each publication is normally handled by only one agent though. Did I manage to confuse you too? There are more tables, but I think that if I get the relationships between the ones below to work correctly I can use that as a model for the others too.
If I do a query on e.g. publication-agency-agent I want to see which agent from what agency deals with what publication. What I see however is only a partial list of publication, listing every agent that I've got on file for a particular agency where only one agent actually handles the publication. If I set my join so that all publications are included and only those agents that have a matching record I get a join error.
My question is: What do I do wrong and How do I solve this?
Descroption of (some of ) the table below to illustrate the problem:
(Primary keys in bold)
TblApplication
ApplID(autonumber)
Application#
Applicant
Address
City
Zip
Country
Telephone
Agent
tblPublication
PubID(autonumber)
Publication #
Application
Agency
Agent
TblAgency
AgencyID(autonumber)
Agency
Address
City
Zip
Country
Telephone
Agent
Tbl Agent
AgentID(autonumber)
Agent
Agency
Telephone
Email
Fax
TblCities
CityID
City
TblCountries
CountryID
Country
My apologies for this very long first posting on this forum that has been extremely useful in getting where I am now with Access (I'm using Access97). I’ve been struggling with the design of a database for a few weeks now and although at first I thought things went pretty smooth and I learned a lot I have in fact not made a lot of progress. I am very confused with the relations between tables. All tables are now normalized (I think) as far as possible and I've ended up with many tables that are in a one-to-many relationship. Several tables, like e.g. tblCities and tblCountries connect to several tables where I need to included addresses. All these tables have look-up values. When I do queries now I do not get the results that I expect. I retrieve too many files from some tables but miss others so obviously something is not correct. I've been going through lots of questions and answers on this forum and although many things are slowly beginning to make sense I haven't been able to distill the solution to my problems. Is there someone willing to help me on my way?
I'll try to give a better description of my database. As you may understand from the tables listed below, an application will give rise to several publications, the agency dealing with an application is not necessarily the same one as the agency dealing with the publication. To further complicate things, we'll use multiple agent from the various agency, each publication is normally handled by only one agent though. Did I manage to confuse you too? There are more tables, but I think that if I get the relationships between the ones below to work correctly I can use that as a model for the others too.
If I do a query on e.g. publication-agency-agent I want to see which agent from what agency deals with what publication. What I see however is only a partial list of publication, listing every agent that I've got on file for a particular agency where only one agent actually handles the publication. If I set my join so that all publications are included and only those agents that have a matching record I get a join error.
My question is: What do I do wrong and How do I solve this?
Descroption of (some of ) the table below to illustrate the problem:
(Primary keys in bold)
TblApplication
ApplID(autonumber)
Application#
Applicant
Address
City
Zip
Country
Telephone
Agent
tblPublication
PubID(autonumber)
Publication #
Application
Agency
Agent
TblAgency
AgencyID(autonumber)
Agency
Address
City
Zip
Country
Telephone
Agent
Tbl Agent
AgentID(autonumber)
Agent
Agency
Telephone
Fax
TblCities
CityID
City
TblCountries
CountryID
Country