-- 这个是共有窗口的查询,,,,怎么不可以查询呢》??
查找不到客户数据表。。。。。。。。。
此主题相关图片如下:qq图片20171124145911.png
Dim Filterkh As String
With e.Form.Controls("客户出生日期")
If .Value IsNot Nothing Then
If Filterkh >"" Then
Filterkh = Filterkh & " And "
End If
Filterkh = Filterkh & "出生日期= #" & .Value & "#"
End If
End With
With e.Form.Controls("客户VIP编号")
If .Text > ""Then
If Filterkh >"" Then
Filterkh = Filterkh & " And "
End If
Filterkh = Filterkh & "VIP编号 like \'%" & .Value & "%\'"
End If
End With
With e.Form.Controls("客户客户姓名")
If .Text > "" Then
If Filterkh >"" Then
Filterkh = Filterkh & " And "
End If
Filterkh = Filterkh & "客户姓名 like \'%" & .Value & "%\'"
End If
End With
With e.Form.Controls("客户客户电话")
If .Text > "" Then
If Filterkh >"" Then
Filterkh = Filterkh & " And "
End If
Filterkh = Filterkh & "客户电话 like \'%" & .Value & "%\'"
End If
End With
With e.Form.Controls("客户微信号")
If .Text > "" Then
If Filterkh >"" Then
Filterkh = Filterkh & " And "
End If
Filterkh = Filterkh & "微信号 like \'%" & .Value & "%\'"
End If
End With
e.Form.Controls("客户窗口_客户数据表").Table.Filterkh = Filterkh
[此贴子已经被作者于2017/11/24 14:59:29编辑过]