J
justatad
I have a query as follows....
SELECT tblAssignment.id, tblAssignment.projectSetupID,
tblAssignment.scenario, tblAssignment.targetPerson,
tblAssignment.assignmentDueDate, tblAssignment.certificate,
tblAssignment.comment, tblAssignment.mysteryType, tblFeeStructure.labor
AS feeLabor, tblFeeStructure.reimburseables AS feeReimburseables,
IIf(IsEmpty(tblAssignment.labor),tblAssignment.labor,tblFeeStructure.labor)
AS labor,
IIf(IsEmpty(tblAssignment.reimbursables),tblAssignment.reimbursables,tblFeeStructure.reimburseables)
AS reimbursables, tblAssignment.member
FROM ((tblClientProfile INNER JOIN (tblProjectNumbers INNER JOIN
tblProjectSetup ON tblProjectNumbers.id=tblProjectSetup.projectID) ON
tblClientProfile.id=tblProjectNumbers.clientID) INNER JOIN
tblFeeStructure ON tblClientProfile.defaultFeeID=tblFeeStructure.id)
INNER JOIN tblAssignment ON
tblProjectSetup.id=tblAssignment.projectSetupID;
The idea is if tblAssignment.labor and/or tblAssignment.reimbursables
(currency) is empty then replace it with tblFeeStructure.labor and/or
tblFeeStructure.reimburseables.
This information gets populated into a form which can: update existing
records or add new records. All the information from the query comes
into the form perfectly.
When the data is saved...all fields are saved except the labor field
and the reimbursables fields. On the form the field names are labor
and reimbursables and the control source is the same.
The tblAssignment also has fields for labor and reimbursables.
What am I missing....I need help. Thanks
SELECT tblAssignment.id, tblAssignment.projectSetupID,
tblAssignment.scenario, tblAssignment.targetPerson,
tblAssignment.assignmentDueDate, tblAssignment.certificate,
tblAssignment.comment, tblAssignment.mysteryType, tblFeeStructure.labor
AS feeLabor, tblFeeStructure.reimburseables AS feeReimburseables,
IIf(IsEmpty(tblAssignment.labor),tblAssignment.labor,tblFeeStructure.labor)
AS labor,
IIf(IsEmpty(tblAssignment.reimbursables),tblAssignment.reimbursables,tblFeeStructure.reimburseables)
AS reimbursables, tblAssignment.member
FROM ((tblClientProfile INNER JOIN (tblProjectNumbers INNER JOIN
tblProjectSetup ON tblProjectNumbers.id=tblProjectSetup.projectID) ON
tblClientProfile.id=tblProjectNumbers.clientID) INNER JOIN
tblFeeStructure ON tblClientProfile.defaultFeeID=tblFeeStructure.id)
INNER JOIN tblAssignment ON
tblProjectSetup.id=tblAssignment.projectSetupID;
The idea is if tblAssignment.labor and/or tblAssignment.reimbursables
(currency) is empty then replace it with tblFeeStructure.labor and/or
tblFeeStructure.reimburseables.
This information gets populated into a form which can: update existing
records or add new records. All the information from the query comes
into the form perfectly.
When the data is saved...all fields are saved except the labor field
and the reimbursables fields. On the form the field names are labor
and reimbursables and the control source is the same.
The tblAssignment also has fields for labor and reimbursables.
What am I missing....I need help. Thanks