Well.... I'm quite embarrassed. I used to be pretty good at MS Access, but put it down for a number of years and now I've found I've forgotten some basic stuff... So please forgive this type of question.
What I'm trying to do is keep data integrity between two tables, but with a catch. Maybe this is not possible, so appreciate alternative ideas.
TABLE 1 = COMPANIES
Company Name
Company Type ('Type 1' or 'Type 2' or 'Type 3')
TABLE 2 = JOBS
Company Name 1 (Type 1 Company)
Company Name 2 (Type 2 Company)
Company Name 3 (Type 3 Company)
Basically, I want to register a company in TABLE 1, and define the TYPE of that company.
A Company can only have one Company Type.
Depending on the Company Type, will determine if I can populate(choose) the company in TABLE 2's 'Company 1,2,3' fields.
So for example, each JOB in TABLE 2 can have up to 3 COMPANIES. (A different company in each Company 1,2,3 fields).
For example, the company that can be selected in the field 'Company Name 1' can only be a company with the appropriate 'Company Type' (as defined in TABLE 1). 'Company Name 1 can only be a Company defined in TABLE 1 with a 'Type 1'.
Now, let's say I want to change the Company Name for a Type 1 company, I want that change to update down to all JOBS that contain that company based in Company Name 1. But it can't just happen for only Companies with 'Type 1', but any Company Type I change. If the Company Name is a Type 2 Company, then it will change all Company Name 2 in TABLE 2 and so on...
So how to create a relationship between TABLE 1 <> TABLE 2 where any changes in TABLE 1 will propagate down to each Company Name # field in TABLE 2 depending on the Type defined in TABLE 1?
**I know I can create a query in TABLE 2 for each Company Name # field to pull companies that equal a certain type.
Yet, if I change the name of the company in TABLE 1, how is that change propagated down to all records in TABLE 2?
What I'm trying to do is keep data integrity between two tables, but with a catch. Maybe this is not possible, so appreciate alternative ideas.
TABLE 1 = COMPANIES
Company Name
Company Type ('Type 1' or 'Type 2' or 'Type 3')
TABLE 2 = JOBS
Company Name 1 (Type 1 Company)
Company Name 2 (Type 2 Company)
Company Name 3 (Type 3 Company)
Basically, I want to register a company in TABLE 1, and define the TYPE of that company.
A Company can only have one Company Type.
Depending on the Company Type, will determine if I can populate(choose) the company in TABLE 2's 'Company 1,2,3' fields.
So for example, each JOB in TABLE 2 can have up to 3 COMPANIES. (A different company in each Company 1,2,3 fields).
For example, the company that can be selected in the field 'Company Name 1' can only be a company with the appropriate 'Company Type' (as defined in TABLE 1). 'Company Name 1 can only be a Company defined in TABLE 1 with a 'Type 1'.
Now, let's say I want to change the Company Name for a Type 1 company, I want that change to update down to all JOBS that contain that company based in Company Name 1. But it can't just happen for only Companies with 'Type 1', but any Company Type I change. If the Company Name is a Type 2 Company, then it will change all Company Name 2 in TABLE 2 and so on...
So how to create a relationship between TABLE 1 <> TABLE 2 where any changes in TABLE 1 will propagate down to each Company Name # field in TABLE 2 depending on the Type defined in TABLE 1?
**I know I can create a query in TABLE 2 for each Company Name # field to pull companies that equal a certain type.
Yet, if I change the name of the company in TABLE 1, how is that change propagated down to all records in TABLE 2?