Dim dr As DataRow
Dim filter As String
With e.Form.Controls("TextBox1")
If .Value IsNot Nothing Then
If filter > "" Then
filter = filter & " And "
End If
filter = "[F398] = '" & Forms("目录").Controls("TextBox1").value &"'"
End If
End With
With e.Form.Controls("TextBox2")
If .Value IsNot Nothing Then
If filter > "" Then
filter = filter & " And "
End If
filter = "[F399] = '" & Forms("目录").Controls("TextBox2").value &"'"
End If
End With
dr = DataTables("T28").Find(filter )
If dr Is Nothing Then
Dim drs As List(of DataRow) = DataTables("T28").AppendLoad(filter)
If drs.Count > 0 Then
Dim wz As Integer = Tables("T28").FindRow(drs(0))
If wz >= 0 Then
Tables("T28").Position = wz
End If
End If