473,621 Members | 2,745 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="updateuse rs.asp?uid=<%=R S( 'user_id' )%>">
<%=RS( "user_usern ame" )%></a>
</td>
</tr>
<%
RS.MoveNext
WEND
%>
</table>
Then on updateusers.asp I have:
<form method="post" action="manageu sers.asp">
<table width="500" border=1 bgcolor="#FFFFF F"
cellpadding="4" cellspacing="0" >
<tr>
<td colspan="2" bgcolor="#0066C C" class="form"> <span
class="white">< b>Update Users</b></span> </td>
</tr>
<tr>
<td class="form" align="right" width="200"><fo nt
color="red">*</font><b>Usernam e:</b></td>
<td width="300">
<input name= "userUserna me" value="<%=userU sername %>"
size="30" maxlength="30"> </td>
</tr>
<tr>
<td class="form" align="right" width="200"><fo nt
color="red">*</font><b>Passwor d:</b></td>
<td width="300">
<input name="userPassw ord" value="<%=userP assword %>"
size="30" maxlength="30"> </td>
</tr>
<tr>
<td class="form" align="right" width="200"><fo nt
color="red">*</font><b>Full name:</b></td>
<td width="300">
<input type="text" name="userFulln ame"
value="<%=userF ullname %>" size="30" maxlength="30"> </td>
</tr>
<tr>
<td class="form" align="right" width="200"><fo nt
color="red">*</font><b>Company name:</b></td>
<td width="300">
<input type="text" name="userCompn ame"
value="<%=userC ompname %>" size="30" maxlength="30"> </td>
</tr>
<tr>
<td class="form" align="right" width="200"><fo nt
color="red">*</font>Email address:</td>
<td width="300">
<input type="text" name="userEmail " value="<%=userE mail
%>" size="30" maxlength="45"> </td>
</tr>
<tr>
<td class="form" align="right" width="200"><fo nt
color="red">*</font>Receive email newsletter:</td>
<td width="300">
<input type="radio" name="userNewsl etter" value="1"
checked>Yes<br>
<input type="radio" name="userNewsl etter"
value="0">No<br ></td>
</tr>
<tr>
<td class="form" align="right" width="200"><fo nt
color="red">*</font>Dealer number:</td>
<td width="300">
<input type="text" name="userDnumb er" value="<%=
userDnumber %>" size="30" maxlength="30"> </td>
</tr>
<tr>
<tr>
<td colspan="2" align="right">
<input name="updateUse r" type="submit" value="Update User"></td>
</tr>
</table>
<input name="userID" type="hidden" value="<%=userI D%>">
<input name="updateUse r" 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_newslette r=" & userNewsletter &_
"user_dnumber=' " & fixQuotes( userDnumber ) & "' " &_
"WHERE user_id=" & userID

Con.Execute sqlString

%>
<br>
<table width="500" cellpadding="4"
cellspacing="0" bgcolor="#FFFFF F">
<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 2170
"FayeC" <fa*******@hotm ail.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_newslette r=" & 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
13733
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. Microsoft OLE DB Provider for ODBC Drivers error '80040e14' Cannot load the DLL xplog70.dll, or one of the DLLs it references. Reason: 193(error not found).
1
2945
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: ----------------- Microsoft OLE DB Provider for ODBC Drivers error '80040e14' UPDATE statement
9
2428
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 attendue /iisHelp/common/500-100.asp, line 11
4
2425
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
6863
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 '80040e14' Syntax error (missing operator) in query expression 'userid= AND password='''.
1
3794
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) in query expression 'auctionid ='. /Mediator/AgentSetup.asp, line 71
4
12544
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 an aggregate function or the GROUP BY clause. when trying to execute the following query:
1
1735
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 tables still updated? The process does not retry the update. Does anyone know if this is a bug? The process is tries to commit 2 update statements. Thanks, *** Scripting Step Begin: 06/20/2007 15:02:16 4 0 O Global ...
9
4006
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 getting the same error Run-time error '-2147217900 (80040e14)' Dim adoHistoryPrint As New ADODB.Connection Dim recHistoryPrint As New ADODB.Recordset Dim cmdHistoryPrint As New ADODB.Command
0
8156
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8653
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8306
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8457
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7127
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5554
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4065
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1460
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.