TableEQP has a field called SoldDate as Double and comes with numbers like 0, 20141215, 20150403, etc.
In a query, I am doing this:
SoldDate2: IIf([SoldDate]=0,"",DateSerial(Left([SoldDate],4),Left(Right([SoldDate],4),2),Right([SoldDate],2)))
When I look at the results, it looks fine. Dates look like dates, and if there was a 0 populated in TableEQP, it is returning a blank record. Now, when I attempt to add in a criteria >#8/31/2014# the query doesn't run and gives me Data Type Mismatch. What can I do? I know this error happens with formatting.
In a query, I am doing this:
SoldDate2: IIf([SoldDate]=0,"",DateSerial(Left([SoldDate],4),Left(Right([SoldDate],4),2),Right([SoldDate],2)))
When I look at the results, it looks fine. Dates look like dates, and if there was a 0 populated in TableEQP, it is returning a blank record. Now, when I attempt to add in a criteria >#8/31/2014# the query doesn't run and gives me Data Type Mismatch. What can I do? I know this error happens with formatting.