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 December 10th, 2005, 06:13 PM
Registered User
 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default NEW: Microsoft JET Database Engine error'80040e14'

Hi Guys... have been stuck on this problem for 4 days now.. just can't seem to solve it. And the problem seems to be an UPDATE statement. This is what the statement looks like and the error:
-------------------------------------------------------------------

Update tdPicUpload SET title='Party', desc='Shreelas 2nd birthday party.1', iso='800', sspeed='30', apature='4.5' WHERE picid ='2005123155615'
Microsoft JET Database Engine error '80040e14'

Syntax error in UPDATE statement.

/_photos/uploadlist.asp, line 29

-------------------------------------------------------------------
Here is the code:
-------------------------------------------------------------------

If Trim(Request.QueryString("action")) = "validate" Then

    Call OpenDB()
    strSQLInfo = "Update tdPicUpload SET title='"& Request.Form("ftitle")&"', desc='"&Request.Form("fdesc")&"', iso='"& Request.Form("fiso")&"', sspeed='"&Request.Form("fspeed")&"', apature='"&Request.Form("fapature")&"' WHERE picid ='"&Trim(Request.QueryString("picid"))&"'"

    Response.Write(strSQLInfo)
    Set objRS = objConn.Execute(strSQLInfo,,adCmdText)
    Call CloseDB()

End If
-------------------------------------------------------------------

The error is being thrown at Set objRS = objConn.Execute(strSQLInfo,,adCmdText), and I have completely no idea why the problem is here, and why it wont go away. If anyone can find the issue, it would be really appreciated if you could email me at [email protected]. Thankyou everyone in advance.
 
Old December 11th, 2005, 10:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What are the datatypes of the columns you're updating? Because of the single quotes, you treat them all as text, but maybe some of them are numeric?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Rob D - Clubbed To Death (kurayamino mix) by The Matrix (Track 4 from the album: The Matrix - Movie Soundtrack) What's This?
 
Old December 12th, 2005, 07:09 AM
Registered User
 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,
I fixed the problems earlier today. The only thing is I am not sure why it works now! No, all the datatypes are text, and I was sure that that wasn't the problem. For some reason I suspect that one of the column names is a reserved keyword because it worked when I renamed them all (just added a 's' in front of them all). That is a rather unusual solution becuase I still don't know where exactly the problem lies.
Thanks.

 
Old December 12th, 2005, 07:17 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's probably the DESC column. It's a reserved word to indicate the sort order in a SELECT statement.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old December 13th, 2005, 05:58 AM
Registered User
 
Join Date: Dec 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,
Spot on... wow.. i so didn't pick that. but yeah, thanks for helping out.
Cheers.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft JET Database Engine (0x80040E09) u813222 Classic ASP Professional 12 April 3rd, 2007 01:27 PM
Microsoft JET Database Engine (0x80004005) kenh BOOK: Beginning ASP 3.0 4 April 6th, 2005 08:52 AM
Microsoft JET Database Engine (0x80040E14) tks_muthu Classic ASP Databases 5 January 1st, 2005 10:17 PM
Microsoft JET Database Engine (0x80040E07) aa Classic ASP Databases 5 August 17th, 2004 07:53 PM
Microsoft JET Database Engine (0x80040E10) knight Classic ASP Databases 12 June 9th, 2004 01:07 AM





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