I'm looking for date that fall between two dates but no luck. I get a run time error.
Dim dtStart As Date, dtEnd As Date, numDay As Double
dtStart = DateSerial(Year(Now), Month(Now), 1)
dtEnd = DateSerial(Year(Now), Month(Now) + 1, 1)
numDay = dtEnd - dtStart
dtEnd = DateSerial(Year(Now), Month(Now), numDay)
gRDB_RS.Filter = "RetrainedDate Between #" & dtStart & "# AND #" & dtEnd & "#"
Also
This one works
gRDB_RS.Filter = "RetrainedDate Like " & "8/4/02"
but this one doesn't
gRDB_RS.Filter = "RetrainedDate Like " & "8/*/02"
Any suggestion friends?
Thank you very much for your help.
Lulo
Dim dtStart As Date, dtEnd As Date, numDay As Double
dtStart = DateSerial(Year(Now), Month(Now), 1)
dtEnd = DateSerial(Year(Now), Month(Now) + 1, 1)
numDay = dtEnd - dtStart
dtEnd = DateSerial(Year(Now), Month(Now), numDay)
gRDB_RS.Filter = "RetrainedDate Between #" & dtStart & "# AND #" & dtEnd & "#"
Also
This one works
gRDB_RS.Filter = "RetrainedDate Like " & "8/4/02"
but this one doesn't
gRDB_RS.Filter = "RetrainedDate Like " & "8/*/02"
Any suggestion friends?
Thank you very much for your help.
Lulo