Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADODB Get X Record.

Status
Not open for further replies.

astrodestino

IS-IT--Management
Joined
Feb 19, 2005
Messages
179
Location
AR
Hi!
I got an access db and I am accessing it thru ADODB

Here is how I open the rs:

MasterConn.ConnectionString = MasterAccessConnect
MasterConn.Open(MasterAccessConnect)
MasterRs = New ADODB.Recordset
MasterRs.Open("SELECT * FROM noticias where idcategoria=" & l.Tag, MasterConn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic)

How can I read the third record without looping thru the database?

Tnx!
 
You could use a DataSet and Datatable from ADO.Net. ;)

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Yes, I could but using this I throw 3 lines and I can get the records...
But tnx anyway I made it using absolutepage.
Cya!
 
I hear ya! While I think the back end of ADO.Net is awesome, I miss the 3 object model of ADO. The more I work with ADO.Net though, the more I like it.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top