I am creating a Database with multiple tables that I have joined via one to many. My problem is that when entering Data I am needing to have the join points record the same data in the joined fields for each record. What I am getting is the following error.
"Cannot add record(s; join key of table 'tblName' not in record set"
Below is the sqr view of the query I use for the Data Entry Form.
SELECT
tblName.Name_ID,
tblName.strLastName AS tblName_strLastName,
tblName.strFirstName,
tblName.strTitle,
tblChurch.strChurchName AS tblName_strChurchName,
tblName.dteDOB,
tblDept.Dept_ID AS tblName_Dept_ID,
tblPhone.Ph_ID AS tblPhone_Ph_ID,
tblName.strLastName AS tblPhone_strLastName,
tblPhone.intAreaCode,
tblPhone.strPhoneNum,
tblPhone.intExtension,
tblAddress.Add_ID,
tblPhone.Ph_ID AS tblAddress_Ph_ID,
[tblName_strLastName] AS tblAddress_strLastName,
tblAddress.strAddress,
tblAddress.[strAddress-Ste,Apt,Unt],
tblAddress.strCity,
tblAddress.strState,
tblAddress.strZip,
tblChurch.Ch_ID,
tblChurch.strChurchName AS tblChurch_strChurchName,
tblChurch.strMinister,
tblDistrict.strDistrict AS tblChurch_strDistrict,
tblDept.Dept_ID AS tblDept_Dept_ID,
tblDept.strMusic,
tblDept.strSingle,
tblDistrict.Dist_ID,
tblChurch.strChurchName AS tblDistrict_strChurchName,
tblDistrict.strDistrict AS tblDistrict_strDistrict
FROM
tblPhone INNER JOIN
((tblDistrict INNER JOIN
(tblDept INNER JOIN
(tblChurch INNER JOIN tblName ON tblChurch.strChurchName = tblName.strChurchName)
ON tblDept.Dept_ID = tblName.Dept_ID)
ON tblDistrict.strDistrict = tblChurch.strDistrict)
INNER JOIN tblAddress
ON tblName.strLastName = tblAddress.strLastName)
ON tblPhone.Ph_ID = tblAddress.Ph_ID;
Can anyone help me in figuring out where I am going wrong?
Thank You
RobotMush (Technical User)
"Cannot add record(s; join key of table 'tblName' not in record set"
Below is the sqr view of the query I use for the Data Entry Form.
SELECT
tblName.Name_ID,
tblName.strLastName AS tblName_strLastName,
tblName.strFirstName,
tblName.strTitle,
tblChurch.strChurchName AS tblName_strChurchName,
tblName.dteDOB,
tblDept.Dept_ID AS tblName_Dept_ID,
tblPhone.Ph_ID AS tblPhone_Ph_ID,
tblName.strLastName AS tblPhone_strLastName,
tblPhone.intAreaCode,
tblPhone.strPhoneNum,
tblPhone.intExtension,
tblAddress.Add_ID,
tblPhone.Ph_ID AS tblAddress_Ph_ID,
[tblName_strLastName] AS tblAddress_strLastName,
tblAddress.strAddress,
tblAddress.[strAddress-Ste,Apt,Unt],
tblAddress.strCity,
tblAddress.strState,
tblAddress.strZip,
tblChurch.Ch_ID,
tblChurch.strChurchName AS tblChurch_strChurchName,
tblChurch.strMinister,
tblDistrict.strDistrict AS tblChurch_strDistrict,
tblDept.Dept_ID AS tblDept_Dept_ID,
tblDept.strMusic,
tblDept.strSingle,
tblDistrict.Dist_ID,
tblChurch.strChurchName AS tblDistrict_strChurchName,
tblDistrict.strDistrict AS tblDistrict_strDistrict
FROM
tblPhone INNER JOIN
((tblDistrict INNER JOIN
(tblDept INNER JOIN
(tblChurch INNER JOIN tblName ON tblChurch.strChurchName = tblName.strChurchName)
ON tblDept.Dept_ID = tblName.Dept_ID)
ON tblDistrict.strDistrict = tblChurch.strDistrict)
INNER JOIN tblAddress
ON tblName.strLastName = tblAddress.strLastName)
ON tblPhone.Ph_ID = tblAddress.Ph_ID;
Can anyone help me in figuring out where I am going wrong?
Thank You
RobotMush (Technical User)