Toby1kenobe
Instructor
Hi All
I'm trying to get results between two dates. The dates are prompted from the user in two text boxes. I then make two variables 'Sdate' and 'Edate' equal to the textboxes. Both these variables are set as Date
sql2 = "SELECT * FROM daily_points WHERE date BETWEEN ' & #sdate# & ' AND ' & #edate# & '"
rsPoints.Open sql2, CN, adOpenForwardOnly, adLockReadOnly
When i run this code i get 'Type Mismatch' and the second line above is highlighted.
Any help is as always greatly appreciated.
Toby