M
Martin
Remark: jxsjc's value is depended to a combo, this combo might be not
selcted by the user, if not selected, it would be done as included all of
this combo contents. zydjc's logic is the same as jxsjc .
Please do help me in solving the following VBA mistake! It's important!
Thanks!!!
Private Sub Command107_Click()
Dim jxsjc As String
Dim zydjc As String
If IsNull([Forms]![aab]![Combo98]) Then
jxsjc = "*"
Else
jxsjc = [Forms]![aab]![Combo98]
End If
If IsNull([Forms]![aab]![Combo100]) Then
zydjc = "*"
Else
zydjc = [Forms]![aab]![Combo100]
End If
DoCmd.OpenForm "ffe", acNormal, acEdit
[Forms]![ffe].Filter = "dealera like '"& jxsjc &"' and dealerb = '"& jxsjc
&"'"
[Forms]![ffe].FilterOn = True
End Sub
selcted by the user, if not selected, it would be done as included all of
this combo contents. zydjc's logic is the same as jxsjc .
Please do help me in solving the following VBA mistake! It's important!
Thanks!!!
Private Sub Command107_Click()
Dim jxsjc As String
Dim zydjc As String
If IsNull([Forms]![aab]![Combo98]) Then
jxsjc = "*"
Else
jxsjc = [Forms]![aab]![Combo98]
End If
If IsNull([Forms]![aab]![Combo100]) Then
zydjc = "*"
Else
zydjc = [Forms]![aab]![Combo100]
End If
DoCmd.OpenForm "ffe", acNormal, acEdit
[Forms]![ffe].Filter = "dealera like '"& jxsjc &"' and dealerb = '"& jxsjc
&"'"
[Forms]![ffe].FilterOn = True
End Sub