what's wrong with htis corde ?

J

John

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/new.asp, line 43

fp_sQry="Select * From tblMatches Where( tblMatches.Date >=
DateAdd("m",-1,Date())) Order by tblMatches.Date DESC"
---------------------------------------------------------------------^thanks
for your help
 
E

Evertjan.

John wrote on 20 aug 2007 in microsoft.public.inetserver.asp.general:
Microsoft VBScript compilation error '800a0401'

Expected end of statement

/new.asp, line 43

fp_sQry="Select * From tblMatches Where( tblMatches.Date >=
DateAdd("m",-1,Date())) Order by tblMatches.Date DESC"
---------------------------------------------------------------------^t
hanks for your help

Internal quotes in a sql string should be single,
otherwise the string is broken.
 
D

Daniel Crichton

Evertjan. wrote on 20 Aug 2007 17:35:05 GMT:
John wrote on 20 aug 2007 in microsoft.public.inetserver.asp.general:


Internal quotes in a sql string should be single, otherwise the string
is broken.

Or should be doubled up so that a double quote is an element of the string.

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top