|
-
Oct 24th, 2002, 05:08 AM
#1
Thread Starter
Addicted Member
why does this display 0 rows?...
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
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
|