Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 80040e14

Status
Not open for further replies.

Ragol1

Programmer
Oct 25, 2001
315
US
Can somebody please tell we what is wrong with this
Im getting error

Microsoft JET Database Engine error '80040e14'

Extra ) in query expression 'ID = )'.

/update/edit.asp, line 20

<---------------------------->
mySQL = &quot;SELECT Membersragol.* FROM Membersragol WHERE (ID = &quot; & ID & &quot;)&quot;
Set RS = Con.Execute( mySQL )
 
mySQL = &quot;SELECT * FROM Membersragol WHERE ID = &quot; & ID & &quot;;&quot;

Try that.
 
Now I get
Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression 'ID ='.

/update/edit.asp, line 20
 
It sounds like your SQL statement has a blank ID in it.
Before you execute the SQL, check for an ID.

If Len(Id) < 1 Then
'Did not get ID.
End If

You can also comment out the execute statement and out
response.write(mySQL)

That will show you if your sql statement is building properly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top