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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fetch data from OleDbDataReader

Status
Not open for further replies.

bartdedecker

Programmer
Feb 22, 2005
17
BE
I want to receive the last Unique Identifier from a table.
I have already this code:
Code:
Dim myCommand As New OleDbCommand("Select max(Id) as LastId from Translation", OleDbConnection2)
                OleDbConnection2.Open()
                Dim myReader As OleDbDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
but I don't know how to read the data from myReader
 
Problem solved.

I used this code:
Code:
While myReader.Read
   value = (myReader("LastId"))
End While
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top