navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

PLEASE HELP ME IN "Microsoft VBScript compilation (0x800A0400)Expected statement"

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> PLEASE HELP ME IN "Microsoft VBScript compilation (0x800A0400)Expected statement"
Page: [1]
 
kinyee

 

Posts: 5
Joined: 4/6/2008
Status: offline

 
PLEASE HELP ME IN "Microsoft VBScript compilation ... - 4/6/2008 21:01:33   
THIS IS MY ERROR TYPE
Microsoft VBScript compilation (0x800A0400)
Expected statement
/order/updatemonthly.asp, line 68
" values (" & Request.Form("date") &" ," & _

AND THIS IS MY STATEMENT
<%


set rs = conntemp.Execute("SELECT * FROM MonthlyReport")





Progress_date = request.form("date")

Math = request.form("math")

BM = request.form("bm")

English = request.form("eng")

Physical_education = request.form("physical")

Child_id = request.form("cid")

Staff_id = request.form("sid")



conntemp.Execute '"Insert into MonthlyReport (Progress_date,Math,BM,English,Physical_education,Child_id,Staff_id)"' & _
" values ('" & Request.Form("date") &"' ," & _
" '" & Request.Form("math") & "'," & _
" '" & Request.Form("bm") &" '," &_
" '" & Request.Form("eng") &"'," &_
" '" & Request.Form("physical") & "'," &_
" '" & Request.Form("cid") & "'," &_ " '" & Request.Form("sid") & "')"







%>

I DUN KNOW WHAT IS HAPPEN TO THE STATEMENT...PLEASE HELP!!THANK YOU.:)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: PLEASE HELP ME IN "Microsoft VBScript compilat... - 4/6/2008 21:08:54   
At the end of the previous line, you have an apostrophe that shouldnt be there?

conntemp.Execute '"Insert into MonthlyReport (Progress_date,Math,BM,English,Physical_education,Child_id,Staff_id)"' <--

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to kinyee)
kinyee

 

Posts: 5
Joined: 4/6/2008
Status: offline

 
RE: PLEASE HELP ME IN "Microsoft VBScript compilat... - 4/6/2008 21:15:32   
thanks for remind but i still cannot solve my problem which is

" values ('" & Request.Form("date") &"' ," & _

(in reply to Spooky)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: PLEASE HELP ME IN "Microsoft VBScript compilat... - 4/6/2008 23:42:02   
Are you still getting the same error after removing that apostrophe ?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to kinyee)
kinyee

 

Posts: 5
Joined: 4/6/2008
Status: offline

 
RE: PLEASE HELP ME IN "Microsoft VBScript compilat... - 4/6/2008 23:46:45   
yaya..i still get the same problem as 1st i get

(in reply to Spooky)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: PLEASE HELP ME IN "Microsoft VBScript compilat... - 4/7/2008 1:15:13   
Also one at the front : conntemp.Execute '"I

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to kinyee)
kinyee

 

Posts: 5
Joined: 4/6/2008
Status: offline

 
RE: PLEASE HELP ME IN "Microsoft VBScript compilat... - 4/7/2008 9:28:12   
If I move out the '
it will show this statement

Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error in INSERT INTO statement.
/kindergarten/updatemonthly.asp, line 57




(in reply to Spooky)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: PLEASE HELP ME IN "Microsoft VBScript compilat... - 4/7/2008 15:09:44   
If you do it this way, what does the SQL string say when you view the web page?
sSQL = "Insert into MonthlyReport (Progress_date,Math,BM,English,Physical_education,Child_id,Staff_id)" & _
" values ('" & Request.Form("date") &"' ," & _
" '" & Request.Form("math") & "'," & _
" '" & Request.Form("bm") &" '," &_
" '" & Request.Form("eng") &"'," &_
" '" & Request.Form("physical") & "'," &_
" '" & Request.Form("cid") & "'," &_ 
" '" & Request.Form("sid") & "')"

response.write sSQL
response.end

conntemp.Execute (sSQL)




_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to kinyee)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> PLEASE HELP ME IN "Microsoft VBScript compilation (0x800A0400)Expected statement"
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts