Thread: Relationship
View Single Post
  #3  
Old May 20th, 2010, 09:22 PM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Relationship

On Thu, 20 May 2010 09:33:01 -0700, PJ wrote:

I created 5 Tables:

1)Office with Primary Key as auto number named Office ID
2)Marketer with Primary Key as auto number named Marketer ID
3)Currency with Primary Key as auto number named Currency ID
4)Client Name with Primary Key as auto number named Client ID
5)Client Ticket with Primary Key as auto number named Client Ticket ID

I have Client ID in each of the other 4 tables and Client is the
relationship by Client ID. When I test and add a new client it is not
showing up in the other tables. I do not think I set up the database design
correctly. Any suggestions??


Access will NOT automagically create new records or field values in other
tables just because you add a new client. A relationship *prevents* the
addition of an invalid record; it doesn't (and needn't and shouldn't) create
empty placeholder records.

Doublecheck your logic, as well. If you put the ClientID field in the Office
table, that means that that office can service one, and only one, client;
similarly with Marketer; similarly with Currency. I doubt that is your intent!
If each Office can service many Clients, but each Client is served by only one
Office, then you need an OfficeID field in the Client table, not vice versa.
The foreign key goes in the "many" table, not in the "one".
--

John W. Vinson [MVP]