Thank you Jeff. . . here's more info
tblEmployeeInfo:
SS# (PrimaryKey)
Per# = personnel number
Last Name
First Name
. . . and more related to dept, status, address, city, st, zip, etc.
tblTRN_HazMat - - - all fields relate to just haz mat training
ID (primary key - assigned by access)
SS#
. . . multiple fields related to training record
Date fields (1 for each of the three different tests)
Test A, B (1 for each of the three different tests)
100% = Y/N (1 for each of the three different tests)
ManagerReview (1 for each of the three different tests) -
indicates if test is with manager to
be
reviewed
HazPerformance completed
HazShip Compliance turned in
1 record includes all three HazTest, as well as the performance and
ship compliance info - all related to a single year's worth of HazMat
training per employee.
tblTRN_Safety
ID (primary key - assigned by access)
SS#
. . . multiple fields related to training record (only 1 test in this
category)
Date field
Test A, B
100% = Y/N
ManagerReview - indicates if test
is with manager to be reviewed
1 record includes the training information for safety for a given year per
employee.
Maybe I should have combined these into one table, but I have created
multiple queries and reports to provide information either just on hazmat
or
just on safety.
tblEmployeeInfo (one) has a one-to-many relationship set up with each
tblTRN_HazMat (many) and tblTRN_Safety (many).
There are no relationships between tblTRN_HazMat and tblTRN_Safety (don't
anticipate I'll need them, they are completely separate).
You mention - foreign keys (I have not established, don't believe I need
them, I could be wrong....???).
I said that I matched what I did with tblTRN_Safety and with tblTRN_HazMat
.
. which simply means that I mirrored what I did with both tables (as well
as
the creation of the queries and forms), I have also investigated the
properties of each and have made sure the properties are identical (i.e.
indexes, etc.)
Does this provide enough information or do you need more?
I am grateful for any help you can provide.
Jeff Boyce said:
Laura
I don't know what you mean by "match[ed] all indexes, primary keys and
relationships".
It all starts with the data. Please provide a description of the tables
you
are using ... for example:
tblPerson
PersonID (primary key)
FirstName
LastName
DOB
tblClass
ClassID (primary key)
ClassTitle
ClassDescription
trelEnrollment
EnrollmentID (primary key)
PersonID (foreign key)
ClassID (foreign key)
EnrollmentDate
...
Your description didn't mention foreign keys ... how are your tables
"related"?
You mention two separate (but very similar sounding) tables for [haz mat]
and [safety training]. Are these two tables essentially identical,
except
that one is for [haz mat] and the other is for [safety training]? If so,
you've designed your table structure to mimic what you would have
probably
done if you'd been limited to using a spreadsheet! If the two tables are
essentially identical in field structure, you only need one table, with
one
additional field to indicate [?haz mat] or [?safety training]!
More specific description may lead to more specific suggestions.
Regards
Jeff Boyce
Microsoft Office/Access MVP
Created an employee database with the following tables:
Employee Info
Haz Mat Training Records
Safety Training Records
(where tables for training records are for 2 separate training
programs)
I have created identical queries and forms using name and SS# from the
employee info table for both haz mat and a separate set for safety
training.
Everything on the safety training queries and forms operate without
issue.
Having issues with an error message with Haz Mat Queries and forms (not
able
to update any of the information) - getting index, primary key or
relationship error. I've match all indexes, primary keys and
relationships
(what is set up for safety training matches how I've set up Haz
Mat)....
any
suggestions for what may be causing error message??