G
Guest
I have query that uses SQL Server 2K as BE. I try to run query in ACCESS with dates as parameters but it is not retreiving records that exceed range of query. Column is set as datetime in table. For example, if date range is Between 5/12/2003 AND 12/31/2003, all 12/31/2003 values are drop because the query excludes any records after 12/31/2003 00:00:01
I try DATEVALUE function in query, but my syntax is not good. Can you please see where my incorrect syntax is. The date range is entered on a form and query is executed on button clic
SELECT dbo_tblCallHistory.CustomerID, dbo_tblCallHistory.CallTime, dbo_tblCallHistory.CallTim
FROM dbo_tblCallHistory
WHERE ((dbo_tblCallHistory.CallTime) Between [Forms]![frmSummaryReports]![txtStartDate] And (DateValue([Forms]![frmSummaryReports]![txtEndDate]))))
I try DATEVALUE function in query, but my syntax is not good. Can you please see where my incorrect syntax is. The date range is entered on a form and query is executed on button clic
SELECT dbo_tblCallHistory.CustomerID, dbo_tblCallHistory.CallTime, dbo_tblCallHistory.CallTim
FROM dbo_tblCallHistory
WHERE ((dbo_tblCallHistory.CallTime) Between [Forms]![frmSummaryReports]![txtStartDate] And (DateValue([Forms]![frmSummaryReports]![txtEndDate]))))