S
Steve Scott
The below criteria works ok in a query running in Access 97 on Windows 98,
but won't run in Access 97 on Windows XP. What could be the problem? Thanks
in advance:-
SELECT tbl_milestones.Project, tbl_milestones.[Milestone Ref] AS [Milestone
ID], tbl_milestones.CPMCRef AS [CPMC Ref], tbl_milestones.Level,
tbl_milestones.Milestone, tbl_milestones.Baseline_Finish AS [Baseline
Finish], tbl_milestones.[Planned Finish], tbl_milestones.Percent_Complete AS
[% Complete], tbl_milestones.RAG, tbl_milestones.[Comments/Mitigation]
FROM tbl_milestones
WHERE (((tbl_milestones.Level)="0" Or (tbl_milestones.Level)="1" Or
(tbl_milestones.Level)="2") AND ((tbl_milestones.Percent_Complete)<>1) AND
((DatePart("q",[Planned Finish]))=DatePart("q",Date())) AND
((DatePart("yyyy",[Planned Finish]))=DatePart("yyyy",Date())))
ORDER BY tbl_milestones.Project, tbl_milestones.[Planned Finish];
but won't run in Access 97 on Windows XP. What could be the problem? Thanks
in advance:-
SELECT tbl_milestones.Project, tbl_milestones.[Milestone Ref] AS [Milestone
ID], tbl_milestones.CPMCRef AS [CPMC Ref], tbl_milestones.Level,
tbl_milestones.Milestone, tbl_milestones.Baseline_Finish AS [Baseline
Finish], tbl_milestones.[Planned Finish], tbl_milestones.Percent_Complete AS
[% Complete], tbl_milestones.RAG, tbl_milestones.[Comments/Mitigation]
FROM tbl_milestones
WHERE (((tbl_milestones.Level)="0" Or (tbl_milestones.Level)="1" Or
(tbl_milestones.Level)="2") AND ((tbl_milestones.Percent_Complete)<>1) AND
((DatePart("q",[Planned Finish]))=DatePart("q",Date())) AND
((DatePart("yyyy",[Planned Finish]))=DatePart("yyyy",Date())))
ORDER BY tbl_milestones.Project, tbl_milestones.[Planned Finish];