I have a group of documents that store a date. I have tried to use search and ftsearch to compare a date to the field, but I can’t seem to work out the query.
Once I have the date inside my program, I format it using CDate. When I look at the query I get it as field=“3/18/10” which to me looks correct.
My question is this, how do get a listing of all of the documents that have a date less than a user given date.
Here is some code that I’ve tried.
parmDate = CDat(parm2)
q = {creationDate < “} + parmDate + {”}
Set dc = db.Search(q,nothing,0)
or
Set dc = db.FTSearch(q,0,1543)
Thank for the assistance.
-Kris