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 July 31st, 2003, 04:41 PM
Authorized User
 
Join Date: Jul 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default Insert Command Refused by Access DB

I am trying to insert a record into a table that includes 3 fields:

Name Data type

ID AutoNumber
Date Date/Time
ServiceID Number

Any of the following commands:

INSERT INTO NurseryEvent (Date, ServiceID) VALUES ('1/1/2003',1)

INSERT INTO NurseryEvent (ID, Date, ServiceID) VALUES (NULL,'1/1/2003',1)

INSERT INTO NurseryEvent (ID, Date, ServiceID) VALUES (DEFAULT,'1/1/2003',1)

result in:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

If I create a test table with no AutoNumber field, the INSERT command works just fine.

Any suggestions

__________________
Ego is a faithful friend; He stays with us all the way to the crater.
 
Old July 31st, 2003, 08:49 PM
Authorized User
 
Join Date: Jul 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Never mind.

Apparently, it is the field named "Date" that is screwing me up.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Command using a querystring Andrew.Berry ASP.NET 2.0 Basics 1 September 27th, 2007 09:26 AM
ASP Insert , MS Access Db tigere Classic ASP Databases 0 November 11th, 2006 08:43 AM
Connection Refused dpkbahuguna Beginning VB 6 2 August 1st, 2006 12:52 AM
Insert command rajanikrishna ASP.NET 1.0 and 1.1 Basics 0 April 3rd, 2006 08:47 AM
unable to insert records into access DB bn_sree Access ASP 0 October 8th, 2003 08:38 AM





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