what's wrong with this 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
 
J

Juan T. Llibre

This is an asp.net newsgroup, not an asp newsgroup.

For answers to asp questions, post to :

microsoft.public.inetserver.asp.general

That's where people who know the answer to questions about active server pages hang out.
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

It looks like the problem is that you've embedded double quotes within your
double quotes.
Try using single quotes around the m like this:

fp_sQry="Select * From tblMatches Where( tblMatches.Date >=
DateAdd('m',-1,Date())) Order by tblMatches.Date DESC"
 

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,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top