I'm not sure why I'm getting this error, I'm hoping someone can help me out. I'm using the query below and when I do a date range of 3/1/06 to 3/31/06 I get an error that says the Query expression is incomplete or too complex. However, when I do the same query from 2/1/06 to 3/1/06, there is no problem. Any ideas what in the world is going on here? Thanks!
SELECT Qry_StError_ArrTrge.[Hospital Name], Qry_StError_ArrTrge.CountOfAcctNum, Qry_StError_ArrTrge.SE, Qry_StError_ArrTrge.MinOfDate, Qry_StError_ArrTrge.MaxOfDate, Qry_Times_ArrTrge.Arr2Triage AS Mean, ([Arr2Triage]-10) AS BM, ([Arr2Triage]-10)/[SE] AS StdDevs, Qry_Times_ArrTrge.HospCode
FROM Qry_Times_ArrTrge LEFT JOIN Qry_StError_ArrTrge ON Qry_Times_ArrTrge.[Hospital Name] = Qry_StError_ArrTrge.[Hospital Name]
GROUP BY Qry_StError_ArrTrge.[Hospital Name], Qry_StError_ArrTrge.CountOfAcctNum, Qry_StError_ArrTrge.SE, Qry_StError_ArrTrge.MinOfDate, Qry_StError_ArrTrge.MaxOfDate, Qry_Times_ArrTrge.Arr2Triage, ([Arr2Triage]-10), ([Arr2Triage]-10)/[SE], Qry_Times_ArrTrge.HospCode
ORDER BY ([Arr2Triage]-10)/[SE];
SELECT Qry_StError_ArrTrge.[Hospital Name], Qry_StError_ArrTrge.CountOfAcctNum, Qry_StError_ArrTrge.SE, Qry_StError_ArrTrge.MinOfDate, Qry_StError_ArrTrge.MaxOfDate, Qry_Times_ArrTrge.Arr2Triage AS Mean, ([Arr2Triage]-10) AS BM, ([Arr2Triage]-10)/[SE] AS StdDevs, Qry_Times_ArrTrge.HospCode
FROM Qry_Times_ArrTrge LEFT JOIN Qry_StError_ArrTrge ON Qry_Times_ArrTrge.[Hospital Name] = Qry_StError_ArrTrge.[Hospital Name]
GROUP BY Qry_StError_ArrTrge.[Hospital Name], Qry_StError_ArrTrge.CountOfAcctNum, Qry_StError_ArrTrge.SE, Qry_StError_ArrTrge.MinOfDate, Qry_StError_ArrTrge.MaxOfDate, Qry_Times_ArrTrge.Arr2Triage, ([Arr2Triage]-10), ([Arr2Triage]-10)/[SE], Qry_Times_ArrTrge.HospCode
ORDER BY ([Arr2Triage]-10)/[SE];