If Forms("患病病史").Opened() Then
Dim tbc As WinForm.TabControl = Forms("患病病史").Controls("TabControl1")
Dim s As String = tbc.SelectedPage.Text
Dim t As Table = Tables(s)
With Tables("基本情况")
If .Current Is Nothing Then
t.Filter = "False"
Else
t.Filter = "PatientsID = \'" & .Current("patientsID") & "\'"
End If
End With
End If