-
dbrecordset
I'm trying to use dbrecordset, and keep getting no output from aspdb. I can loop through the recordset and display my results in the same page. The recordset is opened from a parameter query that I wrote in MS SQL server. If I switch to opening the recordset with a select statement, then the aspdb object grid displays. Anyone have any experience with using the recordset property. Here is the code that I'm trying to get to work. Any feedback would be appreciated.
Bart
set rec=server.createobject("adodb.recordset"
set con=server.createobject("adodb.connection"
set x = server.CreateObject("asp.db"
con.open constr
rec.Open "Exec qryTest @param='1',con,3,1,1
do until rec.EOF
Response.Write rec.Fields("scrapcode"
rec.MoveNext
loop
x.dbRecordSet = rec
x.dbGridTableTag="borders=1"
x.dbUnit = 101
x.dbGridInc =5
x.dbmode = "Grid"
x.aspdb
-
dbrecordset (reply)
looks like you looped to the end of RS. try to goto the top and see.
FK
------------
Bart at 2/18/2002 11:43:55 AM
I'm trying to use dbrecordset, and keep getting no output from aspdb. I can loop through the recordset and display my results in the same page. The recordset is opened from a parameter query that I wrote in MS SQL server. If I switch to opening the recordset with a select statement, then the aspdb object grid displays. Anyone have any experience with using the recordset property. Here is the code that I'm trying to get to work. Any feedback would be appreciated.
Bart
set rec=server.createobject("adodb.recordset"
set con=server.createobject("adodb.connection"
set x = server.CreateObject("asp.db"
con.open constr
rec.Open "Exec qryTest @param='1',con,3,1,1
do until rec.EOF
Response.Write rec.Fields("scrapcode"
rec.MoveNext
loop
x.dbRecordSet = rec
x.dbGridTableTag="borders=1"
x.dbUnit = 101
x.dbGridInc =5
x.dbmode = "Grid"
x.aspdb
-
dbrecordset (reply)
------------
Frank Kwong at 2/19/2002 1:37:08 AM
looks like you looped to the end of RS. try to goto the top and see.
FK
------------
The loop was added in after the fact to test my recordset. I have tried it without the loop and I still don't get any display
Bart
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|