Searching for '&' in Field

J

John Parkinson

I have a database that I need to clean up. One of the
fields called 'PARCEL' contains property lot numbers.
Several hundred of the records contain 'PARCEL' data that
carrys two lot number (89 & 90...or 210 & 211). How can I
set up a query that will 'search' these records? I know
that the 'search and replace' function can find these
records but I am unsure how to set this up in a query.

Thanks in advance.

John Parkinson
 
W

Wayne Morgan

Set up a calculated field in the query.

Expr1: InStr([Parcel], "&")

and set the criteria to
 
J

John Parkinson

Ahhhhh, I see. So the '>0' forces the InStr to search the
entire field instead of looking in one ceratin place in
the string.

Thank you very much Wayne!!

John
-----Original Message-----
Set up a calculated field in the query.

Expr1: InStr([Parcel], "&")

and set the criteria to

--
Wayne Morgan
Microsoft Access MVP


I have a database that I need to clean up. One of the
fields called 'PARCEL' contains property lot numbers.
Several hundred of the records contain 'PARCEL' data that
carrys two lot number (89 & 90...or 210 & 211). How can I
set up a query that will 'search' these records? I know
that the 'search and replace' function can find these
records but I am unsure how to set this up in a query.

Thanks in advance.

John Parkinson


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top