473,511 Members | 15,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error 80040e14

I am getting the following error:
Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression ''FayeC'
us******************@none.com' user_compname='none'
user_newsletter=1user_dnumber='12345678''.

/asp/manageusers.asp, line 122
And I can't find the origin of the error.
Here is what I have for pulling the list of users from the db:
<table border="1" size="400" cellpadding="3"
cellspacing=0 bgcolor="white">
<%
sqlString = "SELECT * FROM users " &_
"ORDER BY user_username"
SET RS = Con.Execute( sqlString )
WHILE NOT RS.EOF
%>
<tr>
<td class="form">
<a href="updateusers.asp?uid=<%=RS( 'user_id' )%>">
<%=RS( "user_username" )%></a>
</td>
</tr>
<%
RS.MoveNext
WEND
%>
</table>
Then on updateusers.asp I have:
<form method="post" action="manageusers.asp">
<table width="500" border=1 bgcolor="#FFFFFF"
cellpadding="4" cellspacing="0">
<tr>
<td colspan="2" bgcolor="#0066CC" class="form"> <span
class="white"><b>Update Users</b></span> </td>
</tr>
<tr>
<td class="form" align="right" width="200"><font
color="red">*</font><b>Username:</b></td>
<td width="300">
<input name= "userUsername" value="<%=userUsername %>"
size="30" maxlength="30"></td>
</tr>
<tr>
<td class="form" align="right" width="200"><font
color="red">*</font><b>Password:</b></td>
<td width="300">
<input name="userPassword" value="<%=userPassword %>"
size="30" maxlength="30"></td>
</tr>
<tr>
<td class="form" align="right" width="200"><font
color="red">*</font><b>Full name:</b></td>
<td width="300">
<input type="text" name="userFullname"
value="<%=userFullname %>" size="30" maxlength="30"></td>
</tr>
<tr>
<td class="form" align="right" width="200"><font
color="red">*</font><b>Company name:</b></td>
<td width="300">
<input type="text" name="userCompname"
value="<%=userCompname %>" size="30" maxlength="30"></td>
</tr>
<tr>
<td class="form" align="right" width="200"><font
color="red">*</font>Email address:</td>
<td width="300">
<input type="text" name="userEmail" value="<%=userEmail
%>" size="30" maxlength="45"></td>
</tr>
<tr>
<td class="form" align="right" width="200"><font
color="red">*</font>Receive email newsletter:</td>
<td width="300">
<input type="radio" name="userNewsletter" value="1"
checked>Yes<br>
<input type="radio" name="userNewsletter"
value="0">No<br></td>
</tr>
<tr>
<td class="form" align="right" width="200"><font
color="red">*</font>Dealer number:</td>
<td width="300">
<input type="text" name="userDnumber" value="<%=
userDnumber %>" size="30" maxlength="30"></td>
</tr>
<tr>
<tr>
<td colspan="2" align="right">
<input name="updateUser" type="submit" value="Update User"></td>
</tr>
</table>
<input name="userID" type="hidden" value="<%=userID%>">
<input name="updateUser" type="hidden" value="1">
</form>

The updateUsers function is:
<%
END IF

' Update user
IF updateUser <> "" THEN

sqlString = "UPDATE users SET " &_
"user_username='" & fixQuotes( userUsername ) & "'," &_
"user_password='" & fixQuotes( userPassword ) & "'," &_
"user_fullname='" & fixQuotes( userFullname ) & "' " &_
"user_email='" & fixQuotes( userEmail ) & "' " &_
"user_compname='" & fixQuotes( userCompname ) & "' " &_
"user_newsletter=" & userNewsletter &_
"user_dnumber='" & fixQuotes( userDnumber ) & "' " &_
"WHERE user_id=" & userID

Con.Execute sqlString

%>
<br>
<table width="500" cellpadding="4"
cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td class="form">
<%=userUsername%> was updated in the database
</td>
</tr>
</table>

Can anybody tell me where the error is?
I have gone thrrough the code several times and found nothing.....

Thank you for any help,

FayeC
Dec 17 '05 #1
1 2167
"FayeC" <fa*******@hotmail.com> wrote
sqlString = "UPDATE users SET " &_
"user_username='" & fixQuotes( userUsername ) & "'," &_
"user_password='" & fixQuotes( userPassword ) & "'," &_
"user_fullname='" & fixQuotes( userFullname ) & "' " &_
"user_email='" & fixQuotes( userEmail ) & "' " &_
"user_compname='" & fixQuotes( userCompname ) & "' " &_
"user_newsletter=" & userNewsletter &_
"user_dnumber='" & fixQuotes( userDnumber ) & "' " &_
"WHERE user_id=" & userID


The commas seem to disappear after the second line...
& "'," &_

& "' " &_

Giles
Dec 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
13711
by: Albert | last post by:
Hi guys, it's nice to join the forum. Can someone can help me? After 2 years of using a program, i suddenly got this error. I tried re-installing SQL but im still getting the message. ...
1
2923
by: Jon LaRosa | last post by:
Hi all - I have a web application and I want to be able to do some basic error handling. For example, here is one error I would like to catch and display in a useful way for the user: ...
9
2412
by: Luc Dal | last post by:
Hello, I've serious problem using ASP under WindowsXP sp2. I get the following reply (sorry it's in french) Erreur de compilation Microsoft VBScript error '800a0401' Fin d'instruction...
4
2419
by: in da club | last post by:
i get error '80040e14' from this codes.. sqlbul="select * from buyers where sesid="&session.SessionID set rsbul=baglantim.execute(sqlbul) if rsbul.eof then
1
6846
by: Alan Murrell | last post by:
Hello, One of our web hosting clients is getting the following error when someone tried to log in form their login page: --- ODBC ERROR --- Microsoft OLE DB Provider for ODBC Drivers error...
1
3786
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)...
4
12530
by: neutralm | last post by:
Hi, I am getting the following error: OLE error code:80040E14 in Microsoft OLE DB Provider for SQL Server Column 'tags.id' is invalid in the select list because it is not contained in either...
1
1725
by: rwilki02 | last post by:
All, We are using a process that updates tables in SQL Server 2000. The process gives the following error but the table is updated even though there is an error. My question is why are the...
9
3995
by: kazper | last post by:
Good day, I'm currently trying to print the data in my database using Visual Basic but I have a little problem with the codes, need your help about figuring out what I might be missing. I keep on...
0
7237
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
7137
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
7349
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
7417
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...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
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,...
0
1572
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
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.