I need to search my SQL Server database by a date range - find all calls placed between this date and that date.
I am using the smalldatetime data type for the field, which is named txtDateTimeCall.
I have been able to find out how to write this for Access with variables but not how to write this for SQL.
Any ideas on how to set up the SQL in the RecordSet Window's SQL box?
Select *
FROM dbo.vwDispatch
WHERE txtDateTimeCall BETWEEN varStartDate AND varEndDate
Default Value = % for both variables
Run-time Value = Request("txtDateTimeCall" for both variables
Does not work.....
Thanks!
Brenda
I am using the smalldatetime data type for the field, which is named txtDateTimeCall.
I have been able to find out how to write this for Access with variables but not how to write this for SQL.
Any ideas on how to set up the SQL in the RecordSet Window's SQL box?
Select *
FROM dbo.vwDispatch
WHERE txtDateTimeCall BETWEEN varStartDate AND varEndDate
Default Value = % for both variables
Run-time Value = Request("txtDateTimeCall" for both variables
Does not work.....
Thanks!
Brenda