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 October 22nd, 2004, 01:21 AM
Authorized User
 
Join Date: Aug 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft JET Database Engine error '80040e07'

I always get confused n get this problem. How could I solved it??

This is the error I got :

UPDATE [General] SET [TopicOrder] ='', [ForumTitle] ='Performance Parts', [ForumDesc] ='Buy, Sell or Trading section', [TopicHeader] ='no', [NumTopics] ='', [NumPosts] ='', [PassWord] ='PARTS' WHERE [TopicID] ='7'
Microsoft JET Database Engine error '80040e07'

Data type mismatch in criteria expression.

/revolnip/Discussion/Forum_Edit.asp, line 58

______________________________________

My [TopicOrder], [NumTopics] & [NumPosts] is Number datatype. Why it dun seems to write out??
Below is my script. Can someone tell me where i got it wrong?

if Request("update") = "true" then
                dim strSQL, TopicHeader
                If Request("TopicHeader") = "true" then
                    TopicHeader = true
                ELSE TopicHeader = false

                    strSQL = "UPDATE [General] SET "
                    strSQL = strSQL & " [TopicOrder] ='" & Request("TopicOrder") &"',"
                    strSQL = strSQL & " [ForumTitle] ='" & Request("ForumTitle") & "',"
                    strSQL = strSQL & " [ForumDesc] ='" & Request("ForumDesc") & "',"
                    strSQL = strSQL & " [TopicHeader] ='" & Request("TopicHeader") & "',"
                    strSQL = strSQL & " [NumTopics] ='" & Request("NumTopics")& "',"
                    strSQL = strSQL & " [NumPosts] ='" & Request("NumPosts")& "',"
                    strSQL = strSQL & " [PassWord] ='" & Request("PassWord")& "' "
                    strSQL = strSQL & " WHERE [TopicID] ='" & Request("TopicID")& "' "

                    Response.Write strSQL
                    Conn.Execute (strSQL)


                end if
            end if


 
Old October 22nd, 2004, 07:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Don't use '' for numerical fields, use a number or NULL. So if you value is supplied, write null or zero; otherwise, pass in the number. '' are for text data types only.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft JET Database Engine error '80040e09' phuc2583 Classic ASP Basics 1 February 28th, 2008 06:45 PM
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' froggzrevenge Classic ASP Databases 2 January 10th, 2005 12:44 AM
Microsoft JET Database Engine error '80040e10' waynehultum Classic ASP Databases 15 August 20th, 2004 10:22 AM
Microsoft JET Database Engine error '80040e10' shermttam Classic ASP Databases 9 December 10th, 2003 01:57 AM





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