473,473 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Microsoft VBScript compilation error '800a0400' Expected statement

1 New Member
I have this error :

Microsoft VBScript compilation error '800a0400'

Expected statement

/amministrazione/add2_sponsor.asp, line 11

<%
^

The code of file "add2_sponsor.asp :

Expand|Select|Wrap|Line Numbers
  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
  2. <% Session.LCID = 1040 %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <title>Sport Club Rorč</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
  8. </head>
  9. <body>
  10. <%
  11. <%
  12. If Session("autenticato") <> "ok" Then
  13. Response.Redirect("login.asp")
  14. End if
  15. %>
  16. ' Creazione della connessione al database
  17. Set objConn = Server.CreateObject("ADODB.Connection")
  18. objConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="& Server.MapPath("../data/rore.mdb")
  19. If Request.QueryString("azione") = "aggiungi" Then
  20. Set Upload = Server.CreateObject("Persits.Upload.1")
  21. Upload.OverwriteFiles = False
  22. Upload.SetMaxSize 1048576
  23. percorso = CStr(Server.MapPath("../img"))
  24. cartella = "sponsor"
  25. cartella2 = Cstr("\" & cartella)
  26. Upload.Save(percorso & cartella2)
  27. Set File = Upload.Files(1)
  28. immagine = File.FileName
  29. nome = Replace(Upload.Form("nome"),"'","''")
  30. web = Replace(Upload.Form("web"),"'","''")
  31. email = Replace(Upload.Form("email"),"'","''")
  32. tipolink = Upload.Form("tipolink")
  33. posizione = Upload.Form("posizione")
  34. tipologia = 0
  35. testosponsor = ""
  36. If Upload.Form("visualizzazione") = "tutte" Then
  37. paghome = 1
  38. pagcomitato = 1
  39. pagstoria = 1
  40. pagnotizie = 1
  41. pagsquadre = 1
  42. pagcalendari = 1
  43. pagclassifiche = 1
  44. pagguestbook = 1
  45. paggalleria = 1
  46. pagcoppa = 1
  47. pagcommenti = 1
  48. pagcontatto = 1
  49. paglink = 1
  50. Else
  51. If Upload.Form("paghome") = "" Then
  52. paghome = 0
  53. Else
  54. paghome = 1
  55. End if
  56. If Upload.Form("pagcomitato") = "" Then
  57. pagcomitato = 0
  58. Else 
  59. pagcomitato = 1
  60. End if
  61. If Upload.Form("pagstoria") = "" Then
  62. pagstoria = 0
  63. Else
  64. pagstoria = 1
  65. End if
  66. If Upload.Form("pagnotizie") = "" Then
  67. pagnotizie = 0
  68. Else 
  69. pagnotizie = 1
  70. End if
  71. If Upload.Form("pagsquadre") = "" Then
  72. pagsquadre = 0
  73. Else
  74. pagsquadre = 1
  75. End if
  76. If Upload.Form("pagcalendari") = "" Then
  77. pagcalendari = 0
  78. Else
  79. pagcalendari = 1
  80. End if
  81. If Upload.Form("pagclassifiche") = "" Then
  82. pagclassifiche = 0
  83. Else
  84. pagclassifiche = 1
  85. End if
  86. If Upload.Form("pagguestbook") = "" Then
  87. pagguestbook = 0
  88. Else
  89. pagguestbook = 1
  90. End if
  91. If Upload.Form("paggalleria") = "" Then
  92. paggalleria = 0
  93. Else
  94. paggalleria = 1
  95. End if
  96. If Upload.Form("pagcoppa") = "" Then
  97. pagcoppa = 0
  98. Else
  99. pagcoppa = 1
  100. End if
  101. If Upload.Form("pagcommenti") = "" Then
  102. pagcommenti = 0
  103. Else
  104. pagcommenti = 1
  105. End if
  106. If Upload.Form("pagcontatto") = "" Then
  107. pagcontatto = 0
  108. Else
  109. pagcontatto = 1
  110. End if
  111. If Upload.Form("paglink") = "" Then
  112. paglink = 0
  113. Else
  114. paglink = 1
  115. End if
  116. End if
  117. sql = "INSERT INTO tblSponsor (txtNome,txtWeb,txtEmail,txtImmagine,numLink,numTipo,txtTestoSponsor,pagHome,pagComitato,pagStoria,pagNotizie,pagSquadra,pagCalendari,pagClassifiche,pagGuestbook,pagGalleria,pagCoppa,pagCommenti,pagContatto,pagLink,numPosizione) VALUES ('"&nome&"','"&web&"','"&email&"','"&immagine&"',"&tipolink&","&tipologia&",'"&testosponsor&"',"&paghome&","&pagcomitato&","&pagstoria&","&pagnotizie&","&pagsquadre&","&pagcalendari&","&pagclassifiche&","&pagguestbook&","&paggalleria&","&pagcoppa&","&pagcommenti&","&pagcontatto&","&paglink&","&posizione&")"
  118. objConn.Execute(sql)
  119. objConn.Close
  120. Set objConn = Nothing
  121. Response.Redirect("add_sponsor.asp?conferma=ok")
  122. End if
  123. %>
  124. </body>
  125. </html>
  126.  
  127.  
Jan 20 '14 #1
1 10118
Rabbit
12,516 Recognized Expert Moderator MVP
You have two code delimiters, one on line 10 and one on line 11. Get rid of one.
Jan 20 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Matt | last post by:
When the ASP statement end with a _ character, then the next line cannot have comment ' character. Is that correct? Since I encountered the following error: Microsoft VBScript compilation...
3
by: Adam Short | last post by:
Can anyone help? I have all of a sudden started to receive this error on my site! I have no idea what script it is executing, why it is now failing, what is going on?? All I have been able...
6
by: Adam Short | last post by:
Can anyone help? I have all of a sudden started to receive this error on my site! I have no idea what script it is executing, why it is now failing, what is going on?? All I have been able...
11
by: remya1000 | last post by:
While running the program, i'm getting this error Microsoft VBScript compilation error '800a0401' Expected end of statement /admin/currentmonth.asp, line 26 strSQL = "SELECT...
0
by: delaney19 | last post by:
Hi im getting this error on line 5 where i start the sub, and i have no idea why so if anyone could help i would be very gratefull. Imports System Imports System.DirectoryServices Namespace...
5
by: char | last post by:
I can't figure out why I am getting error: Microsoft VBScript compilation '800a0400' SET MyRecordSet = SERVER.CREATEOBJECT("ADODB.RECORDSET") MySQL = "SELECT * FROM ShipSummary (NOLOCK) where...
13
by: mdock | last post by:
Hello everyone, I am attempting to add a function to an existing ASP page. The default script of the page is VBScript. The page is returning the following error: Microsoft VBScript...
8
by: Charmie1701 | last post by:
Can anyone help...? I keep getting this error message and am now getting angry. I have checked my syntax hundreds of times and can not seem to find anything wrong with it....I think I need a fresh...
3
by: Indy | last post by:
Hi, I am new to VB and have some previous programming experiences. Curently working as an IT support person and trying to write a VB 6 script to access apos database and get one of the table's...
2
by: kevinr | last post by:
Hi, I am brand new to VB, and I am trying to deploy Office 2007 on my network here at work. We used part of this script to do another deployment, and I have taken pieces and tried to edit for this...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.