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 September 30th, 2004, 11:37 AM
Authorized User
 
Join Date: Sep 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mariusp..

As far as i can make out, ur trying to retrieve ALL of the coloumns and rows in the recordset or are you trying to retrieve just the Coloumn name?? Or are you trying to retrieve the SCHEME of a table?? If u look at OGUNNIKES poste, the code he uses is right as is the post regarding the SCHEME.


the error message is stating that it cannot create a connection to an server object using the creatobject method, which is trying to create an instance of a component, the field.. If i am not mistaken (i havent really had to use the field collection) u can access the fields collection without having to specify a recordset (in the ADO model , the field & fields collection is part of the recordset object, with the connection object at the top of model. So i would assume that you at least need to create a connection object first (i assume that you have done this) then you can use the fields collection to retrieve the coloumn name.. (Have a feeling some one is going to say i am wrong)

Anyhows i would try:
Create a recordset & a connection to ur data store
open the recordset etc etc

then
strO = "" ' Use the strO to start building a table
For each fld in objR.Fields
strO = strO & "<td> & fld.Name & "</td>"
Next

close table, close connection/recordset blah blah

Response.write StrO

Hope this helps


I think it would be better if u posted all the code to see whats going on.


DJWright
 
Old January 9th, 2007, 09:19 AM
Registered User
 
Join Date: Sep 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

test






Similar Threads
Thread Thread Starter Forum Replies Last Post
previous column & next column ct Excel VBA 4 August 19th, 2005 04:50 AM
print column by column ct Excel VBA 1 August 8th, 2005 07:21 AM
template column and bound column hidayah ASP.NET 1.x and 2.0 Application Design 1 April 9th, 2005 03:50 PM
how to make column of table 1 = to column of table gilgalbiblewheel Classic ASP Databases 4 October 11th, 2004 11:57 PM
Compare two Items of data(in column A and column B ever Excel VBA 6 February 13th, 2004 02:19 PM





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