i have a problem with dates i want to retrieve some records between two dates dates are input to two masked box.i have written the query like this
rssearch.Open "select * from timesheet where sname like'%" & txtstaffname.Te xt & "%'" & _
"and date =#" & mskfrom & "#", con, adOpenDynamic, adLockOptimisti c
if mskfrom value is 01/01/2008 and msk is 04/01/2008
it gives result of four months but i want only jan 4 days result
pls help me database is msaccess
rssearch.Open "select * from timesheet where sname like'%" & txtstaffname.Te xt & "%'" & _
"and date =#" & mskfrom & "#", con, adOpenDynamic, adLockOptimisti c
if mskfrom value is 01/01/2008 and msk is 04/01/2008
it gives result of four months but i want only jan 4 days result
pls help me database is msaccess
Comment