Dim t As Table = Tables("表A") Dim filter As String = "1=1" For Each c As Col In t.Cols If c.IsBoolean Then filter &= " and " & c.name & " = false" Else filter &= " and " & c.name & " is null" End If Next Dim idx As Integer = t.FindRow(filter) If idx >= 0 Then t.Position = idx Else t.AddNew End If