G
Guest
I have tried several attempts to use a DATE variable in my WHERE clause and
continue to get data type mismatch. This is the last attempt...
dtDate1 = Forms!frminclusivedates!date1
dtDate2 = Forms!frminclusivedates!date2
Set Rst = MyDb.OpenRecordset("SELECT tblchecks.* FROM tblchecks WHERE " _
& "(((tblchecks.date) Between '# & dtDate1 & #' And '# & dtDate2 &
#'))")
Help Please
continue to get data type mismatch. This is the last attempt...
dtDate1 = Forms!frminclusivedates!date1
dtDate2 = Forms!frminclusivedates!date2
Set Rst = MyDb.OpenRecordset("SELECT tblchecks.* FROM tblchecks WHERE " _
& "(((tblchecks.date) Between '# & dtDate1 & #' And '# & dtDate2 &
#'))")
Help Please