Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
|
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP 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 24th, 2006, 12:15 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection cannot be used to perform this operatio

I am getting the following error on Line3:

ADODB.Recordset error '800a0e7d'
The connection cannot be used to perform this operation. It is either closed or invalid in this context.

Code is:

Line1: sql = "DELETE FROM tblPushLoc WHERE ID = " & ID
Line2: Set objDel = Server.CreateObject("ADODB.Recordset")
Line3: objDel.Open sql, objConn, 3

I am trying to update a table by add/or delete checkboxes on a form.

Any ideas???


 
Old February 24th, 2006, 01:18 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Is the error message correct? Maybe your forgot to open the connection??

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Form, then perform operation? SandersM Access VBA 5 June 29th, 2007 08:50 AM
based upon parameter perform action warsha_14 Struts 4 August 5th, 2006 04:51 AM
How to perform set related operations? hualin_yip Javascript 1 November 9th, 2004 08:00 AM
Force app to perform event adman Beginning VB 6 3 February 10th, 2004 02:30 AM





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