I'm trying to figure out how to add another criteria to the query below, but I can't get the syntax right.
In addition to the criteria already present, I want to say:
Criteria:
If tblFCForms.PHYSAuth is not null AND Age is >39.99
Thanks for any help!
In addition to the criteria already present, I want to say:
Criteria:
If tblFCForms.PHYSAuth is not null AND Age is >39.99
Code:
SELECT tblPersonal.PID, tblPersonal.LocW, qryFullName.FullName, (Date()-[BDAY])/365.25 AS Age, tblPersonal.User, tblPersonal.Mtype, tblPersonal.FCSD, tblPersonal.LocFC1, tblFCForms.FCMbr, tblFCForms.Agree, tblFCForms.PHYSAuth
FROM (tblPersonal INNER JOIN qryFullName ON tblPersonal.PID=qryFullName.PID) INNER JOIN tblFCForms ON tblPersonal.PID=tblFCForms.PID
WHERE (((tblPersonal.FCSD) Is Not Null) AND ((tblFCForms.FCMbr) Is Not Null) AND ((tblFCForms.Agree) Is Not Null) AND ((tblPersonal.XLD) Is Null));
Thanks for any help!