DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 20 Aug 2007 12:01:10 -0500,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    John
          2    Juan T. Llibre
          3    Mike
          4    Mike
          5    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]


what's wrong with this corde ?   
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
Date:Mon, 20 Aug 2007 12:01:10 -0500   Author:  

Re: what's wrong with this corde ?   
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.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"John"  wrote in message news:e8eh0u04HHA.5984@TK2MSFTNGP04.phx.gbl...

>
> 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
>
>
>
> 
Date:Mon, 20 Aug 2007 13:19:03 -0400   Author:  

Re: what's wrong with this corde ?   
You sure the error is really in the SQL and not your asp code?


"John"  wrote in message 
news:e8eh0u04HHA.5984@TK2MSFTNGP04.phx.gbl...

>
> 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
>
>
>
> 
Date:Mon, 20 Aug 2007 13:19:54 -0400   Author:  

Re: what's wrong with this corde ?   
Oh, Ok,

Date isn't a function in SQL, try GetDate()

here is some information on the GetDate in SQL

http://msdn2.microsoft.com/en-us/library/ms186724.aspx



"John"  wrote in message 
news:e8eh0u04HHA.5984@TK2MSFTNGP04.phx.gbl...

>
> 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
>
>
>
> 
Date:Mon, 20 Aug 2007 13:22:44 -0400   Author:  

Re: what's wrong with this corde ?   
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"

-- 
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net



"John"  wrote in message 
news:e8eh0u04HHA.5984@TK2MSFTNGP04.phx.gbl...

>
> 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
>
>
>
> 
Date:Mon, 20 Aug 2007 10:47:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us