T
Terry
Hi,
I know that I can build a SQL statement within a string and then execute it
like the following:
strSQL = "UPDATE tblAuditRpt " _
& "SET tblAuditRpt.AuditRptYesCount = " &
lngInitialEvalCount & " " _
& "WHERE tblAuditRpt.AuditRptID=25;"
CurrentDb.Execute strSQL, dbFailOnError
Can I do the same with an Access statement itself? For example, How could I
execute the following statement if I built it in a string?
lngInitialEvalCount = DCount ("AuditDtlCnt", "AuditDetailInitialEval",
"(((AuditDetailInitialEval.Medicare)=On) AND
((AuditDetailInitialEval.DateofService) Between tblAuditDateRange.StartDate
And tblAuditDateRange.EndDate))")
Thanks,
Terryomsn
I know that I can build a SQL statement within a string and then execute it
like the following:
strSQL = "UPDATE tblAuditRpt " _
& "SET tblAuditRpt.AuditRptYesCount = " &
lngInitialEvalCount & " " _
& "WHERE tblAuditRpt.AuditRptID=25;"
CurrentDb.Execute strSQL, dbFailOnError
Can I do the same with an Access statement itself? For example, How could I
execute the following statement if I built it in a string?
lngInitialEvalCount = DCount ("AuditDtlCnt", "AuditDetailInitialEval",
"(((AuditDetailInitialEval.Medicare)=On) AND
((AuditDetailInitialEval.DateofService) Between tblAuditDateRange.StartDate
And tblAuditDateRange.EndDate))")
Thanks,
Terryomsn