Delete Records Where The Like* Can Be used??

B

Bateman28

Hi

I am trying to use a delete query where any records that contain the Word
Proprietor is removed. In My current table there are hundreds of records
within a "Customer Name" field where the names are for example:

Mr T Proprietor
Mr D Proprietor
Mr C Proprietor

I Would like to delete all of the records that contain the word "Proprietor"
as these are records that are not used. I have tried a Like "Proprietor*"
Query But this didn't work. If anyone could help it would be great

Cheers
 
K

Krzysztof Naworyta

Juzer Bateman28 <[email protected]> napisaÅ‚
| Hi
|
| I am trying to use a delete query where any records that contain the
| Word Proprietor is removed. In My current table there are hundreds of
| records within a "Customer Name" field where the names are for example:
|
| Mr T Proprietor
| Mr D Proprietor
| Mr C Proprietor
|
| I Would like to delete all of the records that contain the word
| "Proprietor" as these are records that are not used. I have tried a
| Like "Proprietor*" Query But this didn't work. If anyone could help it
| would be great


Like "Proprietor*"
if you want to delete every record with field that STARTS with
"Proprietor"

Like "*Proprietor"
if you want to delete every record with field that ENDS with "Proprietor"

Like "*Proprietor*"
if you want to delete every record with field that contains "Proprietor"
 
P

Petr Danes

The phrase Like "Proprietor*" selects only those records where the word
Proprietor is at the beginning of the field.

If you want all records that contain the word Proprietor at the end of the
field, use Like "*Proprietor".

If you want all records that contain the word Proprietor anywhere in the
field, use Like "*Proprietor*".

Pete
 
B

Bateman28

Thanks to both of you for the quick response, i had a feeling i was being
stupid, thats great

Cheers
 

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

Similar Threads


Top