Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT QryInspLastDate.FacilityID, QryInspLastDate.MaxOfInspectionDate, Food.BusinessName, Food.AddressLocationID, Address.CityName,
Food.Priority, Food.NameID, Food.CertifiedManager, License.LicenseNo, QryInspLastDate.TypeID, Food.Status,
IIf([Priority]="1",DateAdd("m",4,[LastOfInspectionDate]),IIf([Priority]="2",DateAdd("yyyy",1,[LastOfInspectionDate]),DateAdd("yyyy",2,[LastOfInspectionDate]))) AS NextInspection
FROM ((Food INNER JOIN Address ON Food.AddressLocationID = Address.AddressLocationID) INNER JOIN License ON Food.FacilityID = License.FacilityID)
LEFT JOIN QryInspLastDate ON Food.FacilityID = QryInspLastDate.FacilityID
WHERE (((QryInspLastDate.TypeID)=2 Or (QryInspLastDate.TypeID) Is Null) AND ((Food.Status)="active")) OR (((QryInspLastDate.TypeID)=23))
ORDER BY Food.BusinessName;