Hi guys,
I have a little problem when I try to filter the file by date criteria. Here's what I did:
All the data is in text file, so I linked this text file to MS Access 2002, and splited the text file columns. So now I have made a table. The date in this file is like this "2007 05 08", so I used a select query [Query1] with additional column which replaced the spaces in this date by the dashes and now I have the date in the format "2007-05-08" (this is the correct date format on my computer machine). I also set that the format of the column would be "General Date". Untill now everything is OK and I'm able to see the correct date. I created additional select query [Query2] which used the data in the first query [Query1] and tried to filter the date column by entering value
However after I pree the button 'Enter' or 'TAB', then MS Access automatically changes this criteria to
When I try to press the button "View" the system says that 'Data type mismatch in criteria expression'. And I'm not able to filter the data as I want to.
Does anybody know why this happens? Is there anything possible to do that I could filter this data by the date?
I have a little problem when I try to filter the file by date criteria. Here's what I did:
All the data is in text file, so I linked this text file to MS Access 2002, and splited the text file columns. So now I have made a table. The date in this file is like this "2007 05 08", so I used a select query [Query1] with additional column which replaced the spaces in this date by the dashes and now I have the date in the format "2007-05-08" (this is the correct date format on my computer machine). I also set that the format of the column would be "General Date". Untill now everything is OK and I'm able to see the correct date. I created additional select query [Query2] which used the data in the first query [Query1] and tried to filter the date column by entering value
Code:
<=#2007-05-08#
Code:
<="#2007-05-08#"
Does anybody know why this happens? Is there anything possible to do that I could filter this data by the date?