T
Terry
I have a row in a table that was populated with the 1st query below. I'd
like to update the existing numeric value in that table with a 2nd query that
uses DCount from another table. Is that possible? If it is, what would the
query look like?
Thanks,
TerryoMSN
1st Query That Populates the Existing Numeric Value
UPDATE AuditRptTbl SET AuditRptTbl.AuditRptNoCount =
DCount("AuditDtlCnt","AuditDetailInitialEval","(((AuditDetailInitialEval.Medicare)=On)
AND ((AuditDetailInitialEval.DateofService) Between #12/31/2008# And
#1/1/2010#) AND ((AuditDetailInitialEval.ReasonableAndNecSvc)=Off))")
WHERE AuditRptTbl.AuditRptID=22;
2nd Query That DCounts Value From Second Table That Would be Added to
Existing Value
UPDATE AuditRptTbl SET AuditRptTbl.AuditRptNoCount =
DCount("AuditDtlCnt","AuditDetailTreatmentTbl","(((AuditDetailTreatmentTbl.Medicare)=On)
AND ((AuditDetailTreatmentTbl.DtOfSvc) Between #12/31/2008# And #1/1/2010#)
AND ((AuditDetailTreatmentTbl.SvcReasonableNecessary)=Off))")
WHERE AuditRptTbl.AuditRptID=22;
like to update the existing numeric value in that table with a 2nd query that
uses DCount from another table. Is that possible? If it is, what would the
query look like?
Thanks,
TerryoMSN
1st Query That Populates the Existing Numeric Value
UPDATE AuditRptTbl SET AuditRptTbl.AuditRptNoCount =
DCount("AuditDtlCnt","AuditDetailInitialEval","(((AuditDetailInitialEval.Medicare)=On)
AND ((AuditDetailInitialEval.DateofService) Between #12/31/2008# And
#1/1/2010#) AND ((AuditDetailInitialEval.ReasonableAndNecSvc)=Off))")
WHERE AuditRptTbl.AuditRptID=22;
2nd Query That DCounts Value From Second Table That Would be Added to
Existing Value
UPDATE AuditRptTbl SET AuditRptTbl.AuditRptNoCount =
DCount("AuditDtlCnt","AuditDetailTreatmentTbl","(((AuditDetailTreatmentTbl.Medicare)=On)
AND ((AuditDetailTreatmentTbl.DtOfSvc) Between #12/31/2008# And #1/1/2010#)
AND ((AuditDetailTreatmentTbl.SvcReasonableNecessary)=Off))")
WHERE AuditRptTbl.AuditRptID=22;