SQL Server doens't use the # syntax like Access. You could replace # with '....I think you'd have to send the SQL in MM/DD/YYYY format though to get this to work.
Dates can be particularly troublesome when firing off SQL like this....you'd be much better off using a stored procedure. Eg;
CREATE PROCEDURE GetDateData
(
@StartDateSMALLDATETIME,
@EndDateSMALLDATETIME
)
AS
SET NOCOUNT ON
/*
__________________________________________________________________________________________
Author:Dylan Morley
Description:
Created:
Modification History:DateModified ByModification
[dd/mm/yy][Name][Desc]
__________________________________________________________________________________________
*/
SELECT
*
FROM
MyTable
WHERE
DateField BETWEEN @StartDate AND @EndDate
SET NOCOUNT OFF
Just call the procedure, passing in your variables.