Code:
SELECT tblCalLog.CalibrationID, tblSite.SiteID, tblSite.SiteName, tblModel.ModelName, tblType.EquipmentType, tblStation.StationName, tblWells.WellName, tblCalLog.CalTime AS CalTime, First(DateAdd("m",[tblType]![CalibrationInterval],[tblCalLog]![CalTime])) AS NextCalFROM tblType INNER JOIN (tblModel INNER JOIN (tblSite INNER JOIN (tblWells RIGHT JOIN (tblStation INNER JOIN (tblCalLog INNER JOIN tblEquipment ON tblCalLog.EquipmentID = tblEquipment.EquipmentID) ON tblStation.StationID = tblEquipment.StationID) ON tblWells.WellID = tblEquipment.WellID) ON tblSite.SiteID = tblEquipment.SiteID) ON tblModel.ModelID = tblEquipment.ModelID) ON tblType.TypeID = tblEquipment.TypeID
GROUP BY tblCalLog.CalibrationID, tblSite.SiteID, tblSite.SiteName, tblModel.ModelName, tblType.EquipmentType, tblStation.StationName, tblWells.WellName, tblCalLog.CalTime, tblEquipment.Active
HAVING (((tblSite.SiteID)=[Forms]![frmCalMenu].[cboSiteList]) AND ((tblEquipment.Active)=True)) OR (((First([Forms]![frmCalMenu].[cboSiteList])) Is Null));
It doesn't matter what kind or what a transducer is, just that it's different from the next thing, i.e. conductivity sensor. I want the query to output only the newest calibration dates and leaving out past ones, it's hard to explain