M
Martin
In a form, I place a combo (combo98) to let the user select one of the name,
and then click a button to show a form only contain this name's record. Yet,
it can't work well. The button's VBA (part of it) is as below. What's wrong
? Thanks!
dim jxsjc as string
If IsNull([Forms]![eff]![Combo98]) Then
jxsjc = "*"
Else
jxsjc = [Forms]![eff]![Combo98]
End If
.......
DoCmd.OpenForm "aab", acNormal, acEdit
[Forms]![aab].Filter = " name like jxsjc"
[Forms]![aab].FilterOn = True
and then click a button to show a form only contain this name's record. Yet,
it can't work well. The button's VBA (part of it) is as below. What's wrong
? Thanks!
dim jxsjc as string
If IsNull([Forms]![eff]![Combo98]) Then
jxsjc = "*"
Else
jxsjc = [Forms]![eff]![Combo98]
End If
.......
DoCmd.OpenForm "aab", acNormal, acEdit
[Forms]![aab].Filter = " name like jxsjc"
[Forms]![aab].FilterOn = True