G
Guest
I built a database used once a quarter and it has worked in the past, but I
am now getting an error “Data Type Mismatch in Criteria Expression†when the
following query is run:
SELECT qry_AgeValidation.[Acct#], qry_AgeValidation.Name,
qry_AgeValidation.DateOfBirth, qry_AgeValidation.DOD,
qry_AgeValidation.DateandTime, qry_AgeValidation.Result,
qry_AgeValidation.[Age At Test], qry_AgeValidation.Physician,
IIf([Result]>=[TBIL_75th],"Yes",IIf([TBIL_75th] Is Null,"Age Out Of
Parameters","No")) AS [At Risk?], Nomogram.TBIL_75th
FROM Nomogram RIGHT JOIN qry_AgeValidation ON Nomogram.AGE =
qry_AgeValidation.ValidatedAge
WHERE (((qry_AgeValidation.DOD) Between [Forms]![frm_Action]![Begin] And
[Forms]![frm_Action]![End]))
ORDER BY qry_AgeValidation.DateandTime DESC;
I cannot find where the error is coming from. Can anyone see where the
problem is? Sure appreciate the help. Thanks
am now getting an error “Data Type Mismatch in Criteria Expression†when the
following query is run:
SELECT qry_AgeValidation.[Acct#], qry_AgeValidation.Name,
qry_AgeValidation.DateOfBirth, qry_AgeValidation.DOD,
qry_AgeValidation.DateandTime, qry_AgeValidation.Result,
qry_AgeValidation.[Age At Test], qry_AgeValidation.Physician,
IIf([Result]>=[TBIL_75th],"Yes",IIf([TBIL_75th] Is Null,"Age Out Of
Parameters","No")) AS [At Risk?], Nomogram.TBIL_75th
FROM Nomogram RIGHT JOIN qry_AgeValidation ON Nomogram.AGE =
qry_AgeValidation.ValidatedAge
WHERE (((qry_AgeValidation.DOD) Between [Forms]![frm_Action]![Begin] And
[Forms]![frm_Action]![End]))
ORDER BY qry_AgeValidation.DateandTime DESC;
I cannot find where the error is coming from. Can anyone see where the
problem is? Sure appreciate the help. Thanks