-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
WHERE LastName Like [Search for Last Name] & "/*"
[Search for Last Name] is the query prompt.
Not the best solution 'cuz the user can enter "Smith*"
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQ9gmBYechKqOuFEgEQKZjgCgywC+D9NQmla/qHvRfWcBSeI/lIYAoP90
VBSHgyP3v5U4mcEpgg2k/jR/
=OrFD
-----END PGP SIGNATURE-----
jb said:
Thanks for the help. Maybe I worded the question poorly. I wanted a
user to
be able to input any name in the querry. Your Like / Or statement only
works
for those two specific names.
:
jb ellis wrote:
I have a name field that is text in a personal type address book
database.
Some relatives keep their own names when they marrry and I would like
to
build a querry that picks up any record that has either name. For
example,
if Joe Smith marries Jane Doe and field contains name as Smith/Doe, I
want to
be able to querry on Smith or Doe and include this record.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Use the Like operator in the WHERE clause:
WHERE LastName Like "Smith/*"
or
WHERE LastName Like "*/Doe"
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQ9f7s4echKqOuFEgEQIbLgCg9i7WGY7+XwmBjKRX7c0gh+DLziwAoLDv
kz8KXScpJSosLkkB1jK0i6U2
=M27w
-----END PGP SIGNATURE-----