Visual Basic .NET's version of dlook or goto first record or goto last record

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maxamis4
    Recognized Expert Contributor
    • Jan 2007
    • 295

    Visual Basic .NET's version of dlook or goto first record or goto last record

    I want to find out what the last record is and the first how is this done in vb.net if eof and bof are gone?
  • bplacker
    New Member
    • Sep 2006
    • 121

    #2
    if you want to move to the first or last.. do something like this:

    dim firstRec, lastRec as integer
    firstRec = 0
    lastRec = DataSet1.Tables ("TableName").R ows.Count - 1

    DataSet1.Tables ("TableName").R ows(firstRect). ...

    DataSet1.Tables ("TableName").R ows(lastRec)...

    Comment

    Working...