T
tgl
I'm trying to have a command button look up based on 2 criteria based on
first & last names. Works fine if I'm doing one or the other:
Dim FIRSTNAMEEXPR As Variant
Dim LASTNAMEEXPR As Variant
(the FIRSTNAMEEXPR and LASTNAMEEXPR are expressions that I have (work fine)
that have pared down names to get rid of middle initials, Jr., Sr. etc.... I
didn't put whole thing here)
Me.Filter = "[first] Like'" & FIRSTNAMEEXPR & "'" And "[last] Like'" &
LASTNAMEEXPR & "'"
Me.FilterOn = True
also, is there a way to do "Or"?
Many thanks!
first & last names. Works fine if I'm doing one or the other:
Dim FIRSTNAMEEXPR As Variant
Dim LASTNAMEEXPR As Variant
(the FIRSTNAMEEXPR and LASTNAMEEXPR are expressions that I have (work fine)
that have pared down names to get rid of middle initials, Jr., Sr. etc.... I
didn't put whole thing here)
Me.Filter = "[first] Like'" & FIRSTNAMEEXPR & "'" And "[last] Like'" &
LASTNAMEEXPR & "'"
Me.FilterOn = True
also, is there a way to do "Or"?
Many thanks!