Quote:
Originally posted by rnealejr
Sivaroo is correct. When you are using key/reserved characters/words you need to put brackets around the objects name.
|
I'm having almost the same problem, can anybody figure out for me.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
SQL = "SELECT count(*) as DateMatch FROM tblNotice WHERE DateNotie > '"&tempLastDate&"'" //tempLastDate has value 04/04/2004
If I use this, SQL = "SELECT count(*) as DateMatch FROM tblNotice WHERE DateNotice > #04/04/2004# " //the result can be displayed out.
If I use this, SQL = "SELECT count(*) as DateMatch FROM tblNotice WHERE DateNotie > '#"&tempLastDate&"'#"
Syntax error in date in query expression 'DateNotie > '#4/4/2004'#'.
i'm writing in asp code.