VB.net error

0 Anthony James Bacula II · April 4, 2015
/images/forum/upload/2015-04-04/089ee3d6ef879bb65937aecbd5f130f8.jpg
What seems to be causing this problem? Can you please put the error message on a clearer perspective on a layman's term perhaps my apologies but i am what you would consider a newbie in this thank you and more power.

Post a Reply

Replies

Oldest  Newest  Rating
0 te telo · April 5, 2015
Im not quite sure,actually.
0 Jenish Patel · April 7, 2015
/images/forum/upload/2015-04-07/a175a7a4c6e09682ded1d748423b9b1c.png
0 Jenish Patel · April 7, 2015
/images/forum/upload/2015-04-07/a7fc374f453a532269d205f2710cc8a9.png
0 Glenn Walker · April 16, 2015
At a glance it appears that you are trying to work with an empty table.  Generally, the approach would be to setup your code in an if branch to be able to catch the situation for when the table is empty.  Actually, the Try Catch above is an excellent way to deal with that.
0 Kevin Ongili · April 20, 2015
I would suggest you first check to confirm there is data before assigning it to textBox1 for example

         if ds.Tables(0).Rows.Count >0 then
              TextBox1.Text=ds.Tables(0).Rows(0).Item("column name or index").ToString
          else
               'Message or do nothing
          End If

this will prevent the stack flow
  • 1

Visual Basic

107,272 followers
About

One of the first products to provide a graphical environment and a paint metaphor for developing user interfaces.

Links
Moderators
Bucky Roberts Administrator