This is my code in filtering data into TextBoxes/Labels
Dim reader As MySqlDataReader
    Try
        If conn.State = ConnectionState.Closed Then
            conn.Open()
        End If
        Dim query As String
        query = "SELECT * FROM member WHERE (memor = '" & memor.Text & "')"
        sqlcom = New MySqlCommand(query, conn)
        reader = sqlcom.ExecuteReader
        While reader.Read()
            Me.lblname.Text = reader("membname").ToString
            Me.txtmembtype.Text = reader("membtype").ToString
            Me.lblmembdate.Text = reader("membdate").ToString
        End While
        conn.Close()
    Catch ex As Exception
        MessageBox.Show(ex.Message)
    Finally
        conn.Dispose()
    End Try
Now I want to have a message box that prompts that there is no data found in my mysql database? Any idea?
 
     
     
     
    