Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2004, 08:40 PM
Authorized User
 
Join Date: Aug 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft JET Database Engine error '80040e14'

I got this error above when I try my script!!! Wat is missing the full error i got is this
Microsoft JET Database Engine error '80040e14'

Syntax error (missing operator) in query expression ''stress stress stress. i'm going crazy liao','11/12/2004 7:33:29 AM', false)'.

/revolnip/Discussion/pm.asp, line 48

What is my missing operator??? where???

Below is my script, can someone help this is urgent!!!

<% Option Explicit
dim lngTimer
lngTimer = Timer
%>




<% Dim ERRORMSG, i, recip, content, topic, POST_HTML, POST_BB, POST_SMILIE, POST_IMG
if not intUID = 0 then Conn.Execute("UPDATE [Users] SET [LastActivePlace] = ""pm.asp?mode=" & Request("mode") & """, [LastLoggedIn]= now()+0.5, [IP] = '" & GetIP & "' WHERE [uID]=" & intUID)
dim del
del = Request("Delete")
if del <> "" then 'if user wants to delete a PM
Conn.Execute("DELETE FROM [PM] WHERE pmID = " & del & " AND Recipient = " & intUID)
response.redirect "pm.asp?Message=Deleted+A+Message+Sucsessfully "
end if
%>
<%
dim Recipient, postSubject, postContent
Recipient = Request("Recipient")
postSubject = Request("Title")
postContent = Request("Content")
if len(postSubject) > 50 then postSubject = left(postSubject, 47) & "..."

if Recipient <> "" and Request("post") = "now" and intUID <> 0 then 'would otherwise cause errors if the form hadn't been submitted - i.e. on first page load

Set rsUserFind = Conn.Execute("SELECT uID,uName FROM Users WHERE uName = '" & Recipient & "'")
    if rsUserFind.eof then
        ERRORMSG = "Can't find username"
    else
        Recipient = rsUserFind("uID")
        if postSubject = "" then postSubject = "[ No Title ]"
    POST_HTML = false
    POST_BB = true
    POST_SMILIE = true
    POST_IMG = true
%>

<%
    end if
end if
if Request("Post") = "now" and ERRORMSG = "" then
Conn.Execute("INSERT INTO [PM] ([Recipient],[Sender],[pmTitle],[Message],[SentDate],[Read]) VALUES (" & Recipient &_
"," & intUID & ",'" & postSubject & "','" & postContent & "','" & now()+0.5 & "', false)")response.redirect "pm.asp?Message=Sent+PM+To+" & Request("Recipient")
end if
%>

Highlighted green is where the error is.

 
Old November 11th, 2004, 09:14 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

  Check the now() function. That table field is of date data type or text data type? and

last variable false ?????

In access, while inserting dates must enclosed in #...#


-----------
Rajani

 
Old November 15th, 2004, 02:06 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

was this solved?

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Error: Microsoft Jet Engine asters ASP.NET 1.0 and 1.1 Professional 2 April 3rd, 2007 09:33 AM
Microsoft JET Database Engine error '80040e10' byronthurman Classic ASP Databases 5 June 8th, 2006 08:20 AM
Microsoft JET Database Engine error '80040e10' malhyp Classic ASP Databases 5 June 6th, 2006 10:07 PM
Microsoft JET Database Engine error '80040e14' aprnip Classic ASP Databases 6 December 10th, 2005 07:36 AM
Microsoft JET Database Engine error '80040e10' nvillare Classic ASP Databases 1 August 20th, 2003 12:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.