Results 1 to 5 of 5

Thread: [RESOLVED] [2005] How to know if no rows are returned?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    83

    Question [RESOLVED] [2005] How to know if no rows are returned?

    I have a Find button on my form that binds to a dataset. How do check when there is no rows returned and inform the user?

    Thanks.

    VB Code:
    1. Private Sub FindNameToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FindNameToolStripButton.Click
    2.         Me.Cursor = Cursors.WaitCursor
    3.         Try
    4.             Me.MAILTableAdapter.FillByName(Me.DetailsDataSet.MAIL, Me.NameToolStripTextBox.Text)
    5.  
    6.         Catch ex As Exception
    7.             MessageBox.Show("Error: " & ex.Message)
    8.  
    9.         End Try
    10.         Me.Cursor = Cursors.Default
    11.     End Sub
    Last edited by rim78; Dec 11th, 2006 at 02:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width