Private Sub Command13_Click()
On Error GoTo Err_Command13_Click
'查询语句
Me.Refresh
Dim strWhere As String
strWhere = ""
If Not IsNull(Me.帐号) Then
strWhere = strWhere & "([帐号] like '*" & Me.帐号 & "*') AND "
End If
If Not IsNull(Me.备注) Then
strWhere = strWhere & "([备注] like '*" & Me.备注 & "*') AND "
End If
'==========================================================
If Len(strWhere) > 0 Then
strWhere = Left(strWhere, Len(strWhere) - 5)
End If