C
Cindy
I am trying to filter a report using the date/time filter
Between [Start Date] and [End Date]
and the blasted thing works fine for 12/1/2009 - 12/31/2009 but then when I
try to pull the report for 1/1/2010 - 1/31/2010 I get the "This expression is
typed incorrectly or it is too complex to be evaluated" error.
This is in a query (I have copied it below) based on a table that is
populated by an Append Query. I have imported the data from McLeod (a
trucking database) into Excel and linked the Excel file.
Any clues on what could be causing this?
SELECT [Prof Rev4].T0Id, [Prof Rev4].T2Id, [Prof Rev4].T0Customer_Id, [Prof
Rev4].T3City_Name, [Prof Rev4].T3State, [Prof Rev4].T4City_Name, [Prof
Rev4].T4State, [Prof Rev4].T8Id, [Prof Rev4].Departure, [Prof Rev4].Arrival,
DateDiff("n",[Departure],[Arrival]) AS RunTimeMinutes, [Prof
Rev4].T0Total_Charge, IIf([T2Loaded]="E",0,[T0Total_Charge]) AS TotalCharge,
Round([RunTimeMinutes]*([T0Total_Charge]/[TotalBilled]),0) AS
RuntimeProrated, [Prof Rev4].T0Freight_Charge,
IIf([T2Loaded]="E",0,[T0Freight_Charge]) AS FreightCharge, [Prof
Rev4].T0Otherchargetotal, IIf([T2Loaded]="E",0,[T0Otherchargetotal]) AS
OtherCharge, [Prof Rev4].T2Loaded, Customer.[Customer Name],
Customer.[Customer City], Customer.[Customer State]
FROM Customer INNER JOIN ([Prof Rev4] INNER JOIN qryMovementBillings ON
[Prof Rev4].T2Id = qryMovementBillings.MovementNo) ON Customer.[Customer #] =
[Prof Rev4].T0Customer_Id
WHERE ((([Prof Rev4].Arrival) Between [Start Date] And [End Date]));
I have Access 2007 and Vista.
Thanks!!
Cindy
Between [Start Date] and [End Date]
and the blasted thing works fine for 12/1/2009 - 12/31/2009 but then when I
try to pull the report for 1/1/2010 - 1/31/2010 I get the "This expression is
typed incorrectly or it is too complex to be evaluated" error.
This is in a query (I have copied it below) based on a table that is
populated by an Append Query. I have imported the data from McLeod (a
trucking database) into Excel and linked the Excel file.
Any clues on what could be causing this?
SELECT [Prof Rev4].T0Id, [Prof Rev4].T2Id, [Prof Rev4].T0Customer_Id, [Prof
Rev4].T3City_Name, [Prof Rev4].T3State, [Prof Rev4].T4City_Name, [Prof
Rev4].T4State, [Prof Rev4].T8Id, [Prof Rev4].Departure, [Prof Rev4].Arrival,
DateDiff("n",[Departure],[Arrival]) AS RunTimeMinutes, [Prof
Rev4].T0Total_Charge, IIf([T2Loaded]="E",0,[T0Total_Charge]) AS TotalCharge,
Round([RunTimeMinutes]*([T0Total_Charge]/[TotalBilled]),0) AS
RuntimeProrated, [Prof Rev4].T0Freight_Charge,
IIf([T2Loaded]="E",0,[T0Freight_Charge]) AS FreightCharge, [Prof
Rev4].T0Otherchargetotal, IIf([T2Loaded]="E",0,[T0Otherchargetotal]) AS
OtherCharge, [Prof Rev4].T2Loaded, Customer.[Customer Name],
Customer.[Customer City], Customer.[Customer State]
FROM Customer INNER JOIN ([Prof Rev4] INNER JOIN qryMovementBillings ON
[Prof Rev4].T2Id = qryMovementBillings.MovementNo) ON Customer.[Customer #] =
[Prof Rev4].T0Customer_Id
WHERE ((([Prof Rev4].Arrival) Between [Start Date] And [End Date]));
I have Access 2007 and Vista.
Thanks!!
Cindy