Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to display text from datareader field
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00672730
Message ID:
00672734
Vues:
7
Thanks Cathi! That worked.

Seems redundant that you need a "reader.read()" statement thats preceeded by an "ExecuteReader()" statement...

Todd


>You need to call the Read method of the DataReader before accessing the data. The Read method actually goes out and fetches the record. Change your code to the following:

Dim reader As System.Data.OleDb.OleDbDataReader
reader = OleDbCommand1.ExecuteReader()
reader.Read()
TextBox4.Text() = reader.Item("hdesc")
The day you take complete responsibly for yourself, the day you stop making any excuses, thats the day you start to the top. - O.J. Simpson

Great advice from a questionable source...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform