I am missing something simple here. If you can assist, it would be appreciated.
Connecting to a SQL database that stores well over a bajillion records. Trying to narrow the scope of my search a titch.
I am trying the following SQL statements.
#1 returns all records but there are ton of them
#2 returns 0 records
#3 returns 0 records
The following returns true when the sql statement includes all records, so my formatting must be right.
MsgBox dteFilterStart = objRS.Fields("fdate").Value
What am I blatently missing here?
Connecting to a SQL database that stores well over a bajillion records. Trying to narrow the scope of my search a titch.
I am trying the following SQL statements.
#1 returns all records but there are ton of them
#2 returns 0 records
#3 returns 0 records
Code:
dteFilterStart = Format("1/4/2007", "mm/dd/yyyy")
dteFilterEnd = Format("1/8/2007", "mm/dd/yyyy")
'strSQL = "SELECT * FROM ladetail"
'strSQL = "SELECT * FROM ladetail WHERE fdate BETWEEN " & dteFilterStart & " AND " & dteFilterEnd
strSQL = "SELECT * FROM ladetail WHERE fdate =" & dteFilterStart
The following returns true when the sql statement includes all records, so my formatting must be right.
MsgBox dteFilterStart = objRS.Fields("fdate").Value
What am I blatently missing here?