In Excel VBA, I am accessing a Microsoft Project 2003 file as a DB through MS OLE DB provider (Microsoft.Project.OLEDB.11.0). When I shoot an SQL to this which uses string comparisons in the WHERE clause like, TaskName='Coding', it works. But when I compare dates in the WHERE clause, like TaskStart > '07/08/06' or TaskStart > 07/08/06 or TaskStart>#07/08/06#, it does not work. Please let me know how to code the WHERE clause when comparing dates.
2006-08-09
20:31:56
·
5 answers
·
asked by
Meipporul
3
in
Computers & Internet
➔ Programming & Design