|
-
Jun 4th, 2005, 08:53 PM
#1
Thread Starter
New Member
dataset 101
Hi all
Just doing my first VB.net project for Uni and have come a bit stuck using a dataset...if anybody has some advice I would appreciate it.
I have a form that has a dataAdapter on it (OleDbDataAdapter3) which I have configured with a WHERE statement based on ItemID which I get from a text box. I want to get the other data from the dataset (dataset11) such as the description field, the title etc. I can do this by binding a textbox (did that to make sure the DataAdapter WHERE statement was working...however I was wondering if there is a way to use the dataset data straight into a variable. I tired the following...
strDescription = Me.txtDescription.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet11, "Items.Description"))
but I get the error message saying "this expression does not produce a value". Is there an easy way to get the value from a dataset? I can post more code if it's helpful...
thanks in advance
cameron
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
|
Click Here to Expand Forum to Full Width
|