Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 22nd, 2004, 01:21 AM
Authorized User
Join Date: Aug 2004
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old October 22nd, 2004, 07:19 AM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

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.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 07:08 PM.

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