Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RS error : Syntax error converting datetime from character string

Status
Not open for further replies.

specialist

Programmer
Sep 7, 2001
50
US
Greetings-

Happy holidays to all who read this. I am having a problem with trying to query a table
to get all entries between a start date and end date (query is below)

I am using macromedia dreamweaver mx and upon entering the info into the recordset window and testing the query
I get the following error: "Syntax error converting datetime from character string".

In the SQL db, the data type for "tblInfo" is daetime, so I am not certain what the issue is. Any advice would be wonderful

Thank you in advance!

Mike

SELECT COUNT (Entries) AS Entries_ALA
FROM tblInfo
WHERE Sort = ('S') AND Category = ('3')
AND place = ('Ala')
AND MTR BETWEEN '" & StartDate & "' AND '" & EndDate & "'
AND Complete = ('1')
OR Sort = ('S') AND Category = ('4')
AND place = ('Ala')
AND MTR BETWEEN '" & StartDate & "' AND '" & EndDate & "'
AND Complete = ('1')
 
That did not work, I believe that # is for Access only correct?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top