L
Lostguy
Hello!
I have three tables that aren't talking to each other!
tblEmployees: EmployeeID (pk/autonumber), FName, LName, StAddress,
etc. Also has JobID (fk) and PayID (fk)
tblJobs: JobID(pk/autonumber), JobTitle, JobCode, JobShortName,etc.
tblPay: PayID (pk/autonumber), PayGrade, OTRate,RegRate, etc.
Relationships:
One (JobID in tblJobs) to Many (JobID in tblEmployees). Enforce ref
int/ cascade (x2), join type 1
One (PayID in tblPay) to Many (PayID in tblEmployees). Enforce ref
int/ cascade (x2), join type 1
Problems:
1) When I run a query that uses LName (from tblEMployees) and
JobShortName (from tblJobs), the query comes back as blank. When I try
to run any query that uses 2 or more tables, it comes up blank. When I
run a query using the fields of just one table, it works fine.
2) I know that there should be a way that the tables "hold" the
relationships, so that if I look at a row in tblEmployees, there
should be a number in the JobID field (coming from tblJObs) and a
number in the PayID field (coming from tblPay). Yet, in the
tblEmployees, those columns are blank.
3) I even tried to set up an intermediate table to just show the
relationships (contains just PayID, JobID, and EmployeeID) and that
still didn't work to allow the queries in Question #1.
Alot of words, but essentially, I have 3 different tables that are
each autonumbering like crazy, but don't have
any table columns that are capturing those relations. I also can't do
queries on 2 or more tables.
This is a basic setup problem, but it is driving me bonkers! Hop
efully, there is just some box I need to check somewhere that will
clear all this up.
Any help appreciated!
Thanks!
VR/
Lost
I have three tables that aren't talking to each other!
tblEmployees: EmployeeID (pk/autonumber), FName, LName, StAddress,
etc. Also has JobID (fk) and PayID (fk)
tblJobs: JobID(pk/autonumber), JobTitle, JobCode, JobShortName,etc.
tblPay: PayID (pk/autonumber), PayGrade, OTRate,RegRate, etc.
Relationships:
One (JobID in tblJobs) to Many (JobID in tblEmployees). Enforce ref
int/ cascade (x2), join type 1
One (PayID in tblPay) to Many (PayID in tblEmployees). Enforce ref
int/ cascade (x2), join type 1
Problems:
1) When I run a query that uses LName (from tblEMployees) and
JobShortName (from tblJobs), the query comes back as blank. When I try
to run any query that uses 2 or more tables, it comes up blank. When I
run a query using the fields of just one table, it works fine.
2) I know that there should be a way that the tables "hold" the
relationships, so that if I look at a row in tblEmployees, there
should be a number in the JobID field (coming from tblJObs) and a
number in the PayID field (coming from tblPay). Yet, in the
tblEmployees, those columns are blank.
3) I even tried to set up an intermediate table to just show the
relationships (contains just PayID, JobID, and EmployeeID) and that
still didn't work to allow the queries in Question #1.
Alot of words, but essentially, I have 3 different tables that are
each autonumbering like crazy, but don't have
any table columns that are capturing those relations. I also can't do
queries on 2 or more tables.
This is a basic setup problem, but it is driving me bonkers! Hop
efully, there is just some box I need to check somewhere that will
clear all this up.
Any help appreciated!
Thanks!
VR/
Lost