Someday maybe I'll get the hang of SQL statements until then could someone help me with this one
I'm trying to select records between two dates and also where
preparer = strPrep
this statement returns 0 records
"There is no pleasure in having nothing to do; the fun is having lots to do and not doing it.
." - Andrew Jackson
I'm trying to select records between two dates and also where
preparer = strPrep
Code:
Dim dbs As Database
Dim rst As DAO.Recordset
strSQL = "SELECT * FROM saved_ships WHERE preparedate BETWEEN ' # dateStartDate # ' And ' # dateEndDate # ' AND preparer = ' & strPrep & '"
Set rst = dbs.OpenRecordset(strSQL)
this statement returns 0 records
"There is no pleasure in having nothing to do; the fun is having lots to do and not doing it.
." - Andrew Jackson