Why does this display 0 Rows?...


Code:
Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnDisplay.Click
txtIPTotal.Value = (txtIP1.Value & "." & txtIP2.Value & "." & txtIP3.Value
& "." & txtIP4.Value)

Dim MyDataTable As DataTable
MyDataTable = MyDataSet.Tables("tblNetwork")

Dim SQLchkIP As String
SQLchkIP = "(IPAddress = '" & txtIPTotal.Value & "')"

Dim foundRows As DataRow()
foundRows = MyDataTable.Select(SQLchkIP)

txtFiltered.Value = foundRows.Length & ", filtered rows"

foundRows = MyDataTable.Select
txtAll.Value = foundRows.Length & ", all rows"
End Sub