S
Song Su
I have two combo boxes to allow user to select date range. My LogInTime
field has date and time. My following query would not select [cboTo] date,
only the day earlier. (If user, for example, select 7/20/07 in the cboTo, it
only displays records upto 7/19/07). If I add [cboTo]+1 and it says it's too
complecated.
SELECT Log.LoginTime
FROM Log
WHERE (((Log.LoginTime)>=[Forms]![MainMenu].[cboFrom] And
(Log.LoginTime)<=[Forms]![MainMenu].[cboTo]));
field has date and time. My following query would not select [cboTo] date,
only the day earlier. (If user, for example, select 7/20/07 in the cboTo, it
only displays records upto 7/19/07). If I add [cboTo]+1 and it says it's too
complecated.
SELECT Log.LoginTime
FROM Log
WHERE (((Log.LoginTime)>=[Forms]![MainMenu].[cboFrom] And
(Log.LoginTime)<=[Forms]![MainMenu].[cboTo]));