I'm using pervasive SQL. What's weird is the date format. I have a query in access to pull it up by a range of dates. In the query if I just leave the date format alone (ie. 20040501) then it pulls up the right records. However in the query I have:
SELECT Mid([DATE_ENTERED],5,2) & "/" & Mid([DATE_ENTERED],7,2) & "/" & Left([DATE_ENTERED],4) AS ORDER_DATE, Sum(FREIGHT.FREIGHT_AMOUNT) AS SumOfFREIGHT_AMOUNT
FROM FREIGHT
GROUP BY Mid([DATE_ENTERED],5,2) & "/" & Mid([DATE_ENTERED],7,2) & "/" & Left([DATE_ENTERED],4)
HAVING (((Mid([DATE_ENTERED],5,2) & "/" & Mid([DATE_ENTERED],7,2) & "/" & Left([DATE_ENTERED],4)) Between [Enter Starting Date] And [Enter Ending Date]));
So the user can type in 05/01/2004 instead of 20040501 However, when I do this it pulls up data from 05/01/2000, 05/01/2001,05/01/2002,05/01/2003 and 05/01/2004.
Anyone know why this may be happening?