我不知道哪里出了问题????能帮看看吗?
CurrentTable.Select(0,5)
Tables("病患信息").ApplyFilter = False
Dim Filter As String
With e.Form.Controls("StartDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "日期 >= #" & .Value & "#"
End If
End With
With e.Form.Controls("EndDate")
If .Value IsNot Nothing Then
If Filter >"" Then
Filter = Filter & " And "
End If
Filter = Filter & "日期 <= #" & .Value & "#"
End If
End With
Dim txt As WinForm.TextBox = e.Form.Controls("TextBox1")
txt.Value=Tables("病患信息").Rows.Count