Finding records with a "/" character in a field

R

rlh

Sorry if this is a dumb question, but I was given this database to
fix and I'm not well versed with Access.

There's a query in which a text field has a criteria of
Like "*['/']*"

It's suppose to only pick up records where there is a "/" character.
However it seems to be picking up records with "'" character.

Am I correct that the the criteria should be
Like "*[/]*"

and that the "[]" means match any character specified within the brackets???

TIA
 
M

MGFoster

rlh said:
Sorry if this is a dumb question, but I was given this database to
fix and I'm not well versed with Access.

There's a query in which a text field has a criteria of
Like "*['/']*"

It's suppose to only pick up records where there is a "/" character.
However it seems to be picking up records with "'" character.

Am I correct that the the criteria should be
Like "*[/]*"

and that the "[]" means match any character specified within the
brackets???

You are correct.
 
R

rlh

'MGFoster' wrote on 3/13/2009 4:32 PM:
rlh said:
Sorry if this is a dumb question, but I was given this database to
fix and I'm not well versed with Access.

There's a query in which a text field has a criteria of
Like "*['/']*"

It's suppose to only pick up records where there is a "/" character.
However it seems to be picking up records with "'" character.

Am I correct that the the criteria should be
Like "*[/]*"

and that the "[]" means match any character specified within the
brackets???

You are correct.

Thank you so much!
 
F

fredg

Sorry if this is a dumb question, but I was given this database to
fix and I'm not well versed with Access.

There's a query in which a text field has a criteria of
Like "*['/']*"

It's suppose to only pick up records where there is a "/" character.
However it seems to be picking up records with "'" character.

Am I correct that the the criteria should be
Like "*[/]*"

and that the "[]" means match any character specified within the brackets???

TIA

If the field value is like "Just/Find"

This works for me:
Like "*/*"
as does
Like "*[/]*"
as does
Like "*" & "/" & "*"
 

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