Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Android" wrote ...
Have not tried the BETWEEN statement. Give it a go. The data comes from Access tables. Knowing this, is there a better way to compare dates in this scenario without converting to a text string? Think about it: the SELECT query is one long string. So, in this scenario you *must* convert it to a string. Using the # characters (e.g. #01 JUN 2004#) tells the Jet SQL parser it is a date. Depending on various settings, you could probably get away with '06/01/2004' by why run the risk when #01 JUN 2004# is unambiguous? FWIW you could use a native VB Date value as a parameter in an ADO Command object, but even then under the hood I would wager it was convert the value to a string for the sake of the SQL parser. Jamie. -- |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
correct syntax for nesting "if", "and", and "vlookup"....if possib | Excel Worksheet Functions | |||
Converting "uppercase" string data to "lower case" in CSV file | Excel Discussion (Misc queries) | |||
nested if contains a syntax error because of a "." | Excel Discussion (Misc queries) | |||
Problem with SQL "Like" clause in Excel | Charts and Charting in Excel | |||
"string too long" error message | Excel Discussion (Misc queries) |