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 February 19th, 2005, 06:30 PM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft JET Database Engine (0x80040E07)

Hi

I am new to all of this and wanted some advice I have the following in add.asp, it should feed the data into my database, but I get JET Database error. I have worked out that it is to do with T7 as it is a check box but I am unsure of the correct way to pass this to the table.

Any help would be much appreciated.

If Request.Form("T1") > "" Then
    uid = Request.Form("T1")
    pwd = Request.Form("T2")
    titl = Request.Form("T3")
    wor = Request.Form("T4")
    mob = Request.Form("T5")
    fax = Request.Form("T6")
    admin = Request.Form("T7")
Else
    uid = Request.Form("T3")
    pwd = Request.Form("T4")
End If

If Request.Form("T1") > "" Then
    SQL = "Insert INTO contacts (uid,pwd,titl,wor,mob,fax, admin) Values ('" & uid & "','" & pwd & "','" & titl & "','" & wor & "','" & mob & "','" & fax & "','" & admin & "')"
Else
    SQL = "Insert INTO adminq (uid,pwd,admin) Values ('" & uid & "','" & pwd & "', True)"
End If
 
Old February 19th, 2005, 08:27 PM
Registered User
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's ok sorted it, it was the SQL line:
    SQL = "Insert INTO contacts (uid,pwd,titl,wor,mob,fax, admin) Values ('" & uid & "','" & pwd & "','" & titl & "','" & wor & "','" & mob & "','" & fax & "'," & admin & ")"

 
Old November 11th, 2006, 09:32 AM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tigere Send a message via Yahoo to tigere
Default

What was wrong with the SQL line??????

('.')





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
NEW: Microsoft JET Database Engine error'80040e14' rishinicolai Classic ASP Databases 4 December 13th, 2005 05:58 AM
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





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