C
cpocpo
Morning, all!
I thought I was passed the initial setup issues to actuall figuring
out what I was doing, but now I am back to the beginning.
I got the "You cannot add or change a record because a related record
is required in table 'tblBranchofService'.
I also found this "**do NOT put the primary key field from a child
table into the parent table" in one newsgroup response, but then
somewhere else it talks about always putting the primaries from the
chidren into the parent......??
Here is what I have. Appreciate any help to make this better and stop
the error so I can enter data. Also, some of my fields may be
redundant or useless. (All of the relationships are "One-to-Many" with
"Enforce Referential" checked but not the two "Cascades"):
(My database tracks personal and recurring training information for
military and civilian staff, BTW)
tblEmployees:
EmployeeID (Autonumber, from EmployeeID on tblJobID)
CivPayGradeID (number, from CivPayGradeID on tblCivPayGrade))<---
Nothing is being stored/updated here.(?)
BranchofServiceID (number, from BranchofServiceID on
tblBranchofService))<---Nothing is being stored/updated here.(?)
JobID (number, from JobID on tblJobandJobCode)
SSN (text)
FName (text), MName (text), LName(text), CivorMil (text)
BranchofService (txt),
CivPayGrade(text), MilRank(text),
HourlyRate (currency), OverTimeRate (currency),
Job (text),
and other stuff like address, phone numbers and e-mail addresses.
tblJobandJobCode:
Job (text
JobID (AutoNumber, PK, to JobID on tblEmployees)
EmployeeID (number, to EmployeeID on tblEmployee)<-Nothing is being
stored/updated here.(?)
tblCivPayGrade:
CivPayGrade (text)
HourlyRate (number),
OverTimeRate (number)
EmployeeID (number)<--Nothing is being stored/updated here.(?)
CivPayGradeID (AutoNumber, PK, to CivPayGradeID on tblEmployees)
tblBranchofService:
BranchofService (text: Army, Navy, etc.)
BranchofServiceID (AutoNumber, PK, to BranchofServiceID on
tblEmployees)
MilRankID (number, from MilRankID on tblMilRank)<-Nothing is being
stored/updated here.(?)
tblMilRank:
MilRank(text)
MilRankID (AutoNumber, PK, to MilRankID on tblBranchofService)
Appreciate the help!
V/R
LostGuy (was lost, then found, now lost again.)
I thought I was passed the initial setup issues to actuall figuring
out what I was doing, but now I am back to the beginning.
I got the "You cannot add or change a record because a related record
is required in table 'tblBranchofService'.
in how my database is setup.From looking around the Internet, this error is related to a problem
I also found this "**do NOT put the primary key field from a child
table into the parent table" in one newsgroup response, but then
somewhere else it talks about always putting the primaries from the
chidren into the parent......??
Here is what I have. Appreciate any help to make this better and stop
the error so I can enter data. Also, some of my fields may be
redundant or useless. (All of the relationships are "One-to-Many" with
"Enforce Referential" checked but not the two "Cascades"):
(My database tracks personal and recurring training information for
military and civilian staff, BTW)
tblEmployees:
EmployeeID (Autonumber, from EmployeeID on tblJobID)
CivPayGradeID (number, from CivPayGradeID on tblCivPayGrade))<---
Nothing is being stored/updated here.(?)
BranchofServiceID (number, from BranchofServiceID on
tblBranchofService))<---Nothing is being stored/updated here.(?)
JobID (number, from JobID on tblJobandJobCode)
SSN (text)
FName (text), MName (text), LName(text), CivorMil (text)
BranchofService (txt),
CivPayGrade(text), MilRank(text),
HourlyRate (currency), OverTimeRate (currency),
Job (text),
and other stuff like address, phone numbers and e-mail addresses.
tblJobandJobCode:
Job (text
JobID (AutoNumber, PK, to JobID on tblEmployees)
EmployeeID (number, to EmployeeID on tblEmployee)<-Nothing is being
stored/updated here.(?)
tblCivPayGrade:
CivPayGrade (text)
HourlyRate (number),
OverTimeRate (number)
EmployeeID (number)<--Nothing is being stored/updated here.(?)
CivPayGradeID (AutoNumber, PK, to CivPayGradeID on tblEmployees)
tblBranchofService:
BranchofService (text: Army, Navy, etc.)
BranchofServiceID (AutoNumber, PK, to BranchofServiceID on
tblEmployees)
MilRankID (number, from MilRankID on tblMilRank)<-Nothing is being
stored/updated here.(?)
tblMilRank:
MilRank(text)
MilRankID (AutoNumber, PK, to MilRankID on tblBranchofService)
Appreciate the help!
V/R
LostGuy (was lost, then found, now lost again.)