K
Karen
Have updated a 97 database to 2003.
Report shows the history/dates of inspection of equipment. We want the
report to filter and show only when the next inspection is due.
97 query read:
SELECT tblAssetRegister.ID, tblAssetRegister.[Plant Item Number],
tblAssetRegister.Area, tblAssetRegister.Section, tblAssetRegister.Location,
tblAssetRegister.[Equipment Type], tblAssetRegister.InspFreq,
Last(tblInspections.Insp_Date) AS LastOfInsp_Date,
Last(tblInspections.Insp_Comments) AS LastOfInsp_Comments FROM
tblAssetRegister INNER JOIN tblInspections ON tblAssetRegister.ID =
tblInspections.Equip_Id WHERE (((IIf([forms]![frmMainMenu]![Area] Is
Null,[Area] Is Not Null Or [Area] Is
Null,[Area]=[forms]![frmMainMenu]![Area]))<>False) AND
((IIf([forms]![frmMainMenu]![Sect] Is Null,[Section] Is Not Null Or [Section]
Is Null,[Section]=[forms]![frmMainMenu]![Sect]))<>False) AND
((IIf([forms]![frmMainMenu]![Location] Is Null,[Location] Is Not Null Or
[Section] Is Null,[Location]=[forms]![frmMainMenu]![Location]))<>False))
GROUP BY tblAssetRegister.ID, tblAssetRegister.[Plant Item Number],
tblAssetRegister.Area, tblAssetRegister.Section, tblAssetRegister.Location,
tblAssetRegister.[Equipment Type], tblAssetRegister.InspFreq HAVING
(((tblAssetRegister.InspFreq)>0) AND
((Last(Format([Insp_date],"dd,mm,yyyy")))=Format(Date()-[InspFreq]*30,"dd,mm,yyyy"))) OR (((Last(tblInspections.Insp_Date)) Is Null));
How do I make it 2003 compatible?
Thanks
Report shows the history/dates of inspection of equipment. We want the
report to filter and show only when the next inspection is due.
97 query read:
SELECT tblAssetRegister.ID, tblAssetRegister.[Plant Item Number],
tblAssetRegister.Area, tblAssetRegister.Section, tblAssetRegister.Location,
tblAssetRegister.[Equipment Type], tblAssetRegister.InspFreq,
Last(tblInspections.Insp_Date) AS LastOfInsp_Date,
Last(tblInspections.Insp_Comments) AS LastOfInsp_Comments FROM
tblAssetRegister INNER JOIN tblInspections ON tblAssetRegister.ID =
tblInspections.Equip_Id WHERE (((IIf([forms]![frmMainMenu]![Area] Is
Null,[Area] Is Not Null Or [Area] Is
Null,[Area]=[forms]![frmMainMenu]![Area]))<>False) AND
((IIf([forms]![frmMainMenu]![Sect] Is Null,[Section] Is Not Null Or [Section]
Is Null,[Section]=[forms]![frmMainMenu]![Sect]))<>False) AND
((IIf([forms]![frmMainMenu]![Location] Is Null,[Location] Is Not Null Or
[Section] Is Null,[Location]=[forms]![frmMainMenu]![Location]))<>False))
GROUP BY tblAssetRegister.ID, tblAssetRegister.[Plant Item Number],
tblAssetRegister.Area, tblAssetRegister.Section, tblAssetRegister.Location,
tblAssetRegister.[Equipment Type], tblAssetRegister.InspFreq HAVING
(((tblAssetRegister.InspFreq)>0) AND
((Last(Format([Insp_date],"dd,mm,yyyy")))=Format(Date()-[InspFreq]*30,"dd,mm,yyyy"))) OR (((Last(tblInspections.Insp_Date)) Is Null));
How do I make it 2003 compatible?
Thanks