473,385 Members | 1,292 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Microsoft JET Database Engine error '80040e14' Syntax error (missing operator)

The following is my code..... I was trying to accept users' feed back and save it to the database....

It works once and then keeps bringing the above error message...

(Microsoft..... Syntax error (Mission Operator)...)...

COULD YOU PLEASE HELP ME OUT!!!

NOTE: All the fields in the database are of type TEXT...

Thank YOU!!!
<body>
<%
dim Ssection,stype,qn1,qn2,qn3,qn4,qn5,qn6,qn7,qn8,qn9 ,qn10,qn11,qn12,qn13,qn14,qn15,qn16,qn17,sql
dim con,rs,filePath,boolFound


Ssection=request.Form("Section")
stype=Request.Form("Stype")
qn1=Request.Form("Qnum1")
qn2=Request.Form("Qnum2")
qn3=Request.Form("Qnum3")
qn4=Request.Form("Qnum4")
qn5=Request.Form("Qnum5")
qn6=Request.Form("Qnum6")
qn7=Request.Form("Qnum7")
qn8=Request.Form("Qnum8")
qn9=Request.Form("Qnum9")
qn10=Request.Form("Qnum10")
qn11=Request.Form("Qnum11")
qn12=Request.Form("Qnum12")
qn13=Request.Form("Qnum13")
qn14=Request.Form("Qnum14")
qn15=Request.Form("Qnum15")
qn16=Request.Form("Qnum16")
qn17=request.Form("Qnum17")

'SELECT [fields] FROM [table] WHERE [expression]
'INSERT INTO [table] ([field1],...) VALUES ([value1],...) WHERE [expression]
'UPDATE [table] SET [field1]=[value1] WHERE [expression]


set con=Server.CreateObject("ADODB.Connection")
set rs=Server.CreateObject("ADODB.Recordset")

con.Provider="Microsoft.Jet.OLEDB.4.0;"
filePath = Server.MapPath("compute.mdb")
con.Open "C:\inetpub\wwwroot\CSF\Database\CSFSystem2.md b"


sql = "INSERT INTO [LastTable]([SSection],[SType],[QOne],[QTwo],[QThree],[Q4],[Q5],[Q6],[Q7],[Q8],[Q9],[Q10],[Q11],[Q12],[Q13],[Q14],[Q15],[Q16],[Q17]) values ('" + Ssection + "','" + stype + "','" + qn1 +"','" + qn2 + "','" + qn3 + "','" + qn4 + "','" + qn5 + "','" + qn6 + "','" + qn7 + "','" + qn8 + "','"+ qn9 + "','" + qn10 + "','" + qn11 + "','" + qn12 + "','" + qn13 + "','" + qn14 + "','" + qn15 + "','" + qn16 + "','" + qn17 + "')"

rs.open sql,con

<%
response.Redirect("SuccessSave.html")
%>

</body>
</html>
Jan 19 '12 #1
1 3858
C CSR
144 100+
I tested the Query and it works--No error. Look at your connection setup. I know you have a space towards the end in the string:

"C:\inetpub\wwwroot\CSF\Database\CSFSystem2.md b"

I write my stuff a little different so I'll have to write something to test your method. An operator error means you left something out in the query itself, or it trying to parse some other line and thinks you left something out, like a syntax mistake in you code; possibly it thinks the "b" on the end is a switch? Let me know if these observations gets the issue resolved.
Jan 19 '12 #2

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

Similar topics

3
by: Balaji | last post by:
I'm trying to do some basic socket programming. here is the line of code which is creating problem.. int FAR PASCAL __declspec (dllexport)(char * addr,int port) Hers is the error I'm...
3
by: Lumpierbritches | last post by:
Syntax Error (missing operator) in query expression =BLANK'S MOLLIE-PRINCE BRUISER-3/14/2004-03 AnimalID is correct. I'm trying to open with a command button or double click the frmAnimal from a...
1
by: chug | last post by:
I'm not a programmer but it's my job to solve this. Can someone help me with this error message? Microsoft OLE DB Provider for ODBC Drivers error '80040e14' Syntax error (missing operator)...
0
by: MWK | last post by:
Hi All, I don't understand why I get "error c2061: syntax error : identifier" in VS2003. I thought it's fixed in .Net 2003: __hook(&TCP_Client::LineReceived, client, HandlerLineReceived); ...
1
by: IceColdFire | last post by:
I have a VC++.net Win32 console application, however when I compile , I get this error error C2146: syntax error : missing ';' before identifier 'Length' Explain... Location pointed is ...
4
by: D | last post by:
I think this is a simple fix, but a second set of eyes could certainly help. Here is the error in it's entirety followed by my search criteria code. Any suggestions? Microsoft JET Database...
6
by: Pixel.to.life | last post by:
So I have this perfectly fine and running app, that uses managed C++ forms. Problem#1: I pass a Bitmap reference to a class, hoping to modify it in one of the class's methods, so it...
6
by: zmee | last post by:
Hi, I'm doing a little game in OpenGL for college and I've got these 3 classes in C++: WarBalls - represents the Game's Application. It is supposed to be a singleton and holds all the Game's...
6
by: muby | last post by:
Hi everybody :) I'm modifying a C++ code in VC++ 2005 my code snippet void BandwidthAllocationScheduler::insert( Message* msg, BOOL* QueueIsFull,
4
by: srinathvs | last post by:
Hi, I have an access db that I am trying to query from a vb6 program. I've the following code: Dim sSQLQuery As String sSQLQuery = "SELECT * FROM TblData WHERE ID = " & Chr(39) & ID &...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.