Wrox Programmer Forums
| 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 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 15th, 2003, 02:20 PM
Registered User
Join Date: Jul 2003
Location: Montreal, QC, Canada.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default RDS Single Record and Table Binding with Access

Ok my situation is that I would like to benefit from RDS data binding with MS Access. I am looking at Pro ASP 3.0 Chapter 10 which has a lot of good examples, except they are all coded for MS sequel server.

I am able to get data from my DB if I use the following type of object in an ASP file, where I open a recordset in UserPage.asp (code also below),

<OBJECT CLASSID="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33"
        ID="dsoData" HEIGHT="0" WIDTH="0">
  <PARAM NAME="URL" VALUE="UserPage.asp">

Dim rsData
Set rsData = Server.CreateObject("ADODB.Recordset")
rsData.Open "SELECT * FROM tblUsers", Cnn
rsData.Save Response, adPersistXML
Set rsData = Nothing

but if I try to save data with a handy save button I get no results on the database .

<BUTTON ID="cmdUpdateAll" TITLE="Save All Changes"

I am assuming there is a problem with the way I create the object.

IN the book they set up the object in the following manner,

<OBJECT CLASSID="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33"
        ID="dsoData" HEIGHT="0" WIDTH="0">
<PARAM NAME="Connect" VALUE="<%=strConn%>">
<PARAM NAME="Server" VALUE="http://<%=Request.ServerVariables("SERVER_NAME")%>">

but my MS Access DB is local for the moment and I am using the following code to open it

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=C:\DataStore\test.mdb"

Can anyone help me with a solution?

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to do record count for Link table in access ayazhoda Access VBA 0 April 16th, 2008 04:43 AM
How do I append a single record ??? prashanthmcr SQL Language 3 December 14th, 2005 05:40 PM
Access Database from Javascript with rds nosreg Access 2 February 3rd, 2005 07:19 PM
"Single-Record" Recordset Wyatt70 Classic ASP Databases 2 November 18th, 2003 01:20 PM
Display a single record.. PLEASE HELP TnTandyO Classic ASP Databases 26 September 9th, 2003 10:34 AM

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