Hi All,
I have built a report based on the following query:
This used to work before i had a lot of data, but now i get this error:
"This expression is typed incorrectly or it is too complex to be evaluated"
What should I do?
Thank you,
I have built a report based on the following query:
Code:
SELECT tblDailyActivities.ActivityDate, tblDailyActivities.EmployeeID, tblDailyActivities.StartTime, tblDailyActivities.EndTime, tblDailyActivities.Description, tblDailyActivities.Quantity, tblDailyActivities.FunctionsID, (([endtime]-[starttime])*1440) AS TotalTime, tblFunctions.FunctionsType, nz(([tblFunctions].[FunctionsType])="Lunch" Or ([tblFunctions].[FunctionsType])="Break - First" Or ([tblFunctions].[FunctionsType])="Break - Second") AS Expr1
FROM tblFunctions LEFT JOIN tblDailyActivities ON tblFunctions.FunctionsID = tblDailyActivities.FunctionsID
WHERE (((tblDailyActivities.ActivityDate) Between [Forms]![frmAllinOneReport]![txtdatefrom] And [Forms]![frmAllinOneReport]![txtdateto]) AND ((nz(([tblFunctions].[FunctionsType])="Lunch" Or ([tblFunctions].[FunctionsType])="Break - First" Or ([tblFunctions].[FunctionsType])="Break - Second"))=False));
This used to work before i had a lot of data, but now i get this error:
"This expression is typed incorrectly or it is too complex to be evaluated"
What should I do?
Thank you,