Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 converting error

Author  Topic 

ezopus
Starting Member

5 Posts

Posted - 2007-08-10 : 06:33:22
Hello,
I've this simple query in the access project that should return results to a specific date, which is given in the fiel "text6" in the form "frmKl".
But when I try to execute this query it says: "Syntax error converting datetime from character string."
Does anybody know what am I doing wrong? Thanks.

SELECT Date, txtISINP
FROM dbo.KL
WHERE (Date = CONVERT(DATETIME, '[Forms]![frmKl]![text6]', 102))
ORDER BY Date DESC
   

- Advertisement -