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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JET Database Engine error 80040e14

Status
Not open for further replies.

LaPluma

Programmer
Feb 3, 2002
139
DE
Hello

I am getting the following error message:

Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression 'ThreadID= AND ThreadP=0'.

/db/planet/repost.asp, line 17

which is located here:


The message seems to refer to the following SQL statement in the repost.asp file:

rsget.Open "SELECT * FROM board WHERE ThreadID=" & id & " AND ThreadP=0", conn

Thread and ThreadP are numeric fields in the MS Access 2000 database I am using.

What does the error 'Missing Operator' mean, please? I have tried removing quotes in the SQL statement, and adding single quotes to it, but I continue to get error messages.

Thanks for any help.

LaPluma
 
Syntax error (missing operator) in query expression 'ThreadID= AND ThreadP=0'.

there is no value for ThreadID and also Im guessing ThreadP is incorrect as well, because autonumber don't start at 0 they start at 1

When its numeric you don't put single quotes around it. www.vzio.com
star.gif
/ [wink]
 
Hello Snowboard

Thank you for your message.

I am still getting the following message (I have changed the 0 to 1).

Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression 'ThreadID= AND ThreadP=1'.

/stevehigham/db/planet/repost.asp, line 17

Any other assistance would be appreciated.

Many thanks
 
Syntax error (missing operator) in query expression 'ThreadID= AND ThreadP=1'.

You still don't have a value for threadID this is what is causing the error now. www.vzio.com
star.gif
/ [wink]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top