Character Query


K

KIMA06

I have a file that I need to query that has names of cities in a particular
field. I need to find all cities that have more than 4 characters in its
name. Thanks in advance.
 
Ad

Advertisements

B

Brendan Reynolds

KIMA06 said:
I have a file that I need to query that has names of cities in a particular
field. I need to find all cities that have more than 4 characters in its
name. Thanks in advance.

WHERE Len([NameOfField]) > 4

If the value may be null, you might need to modify that to something like
.....

WHERE Len([NameOfField] & "") > 4
 
J

Jerry Whittle

SELECT YourTable.*
FROM YourTable
WHERE Len([City_Field]) >4;
 
J

Jerry Whittle

SELECT YourTable.*
FROM YourTable
WHERE Len([City_Field]) >4;
 
J

Jerry Whittle

SELECT YourTable.*
FROM YourTable
WHERE Len([City_Field]) >4;
 
J

Jerry Whittle

SELECT YourTable.*
FROM YourTable
WHERE Len([City_Field]) >4;
 
Ad

Advertisements

J

Jerry Whittle

SELECT YourTable.*
FROM YourTable
WHERE Len([City_Field]) >4;
 
J

Jerry Whittle

SELECT YourTable.*
FROM YourTable
WHERE Len([City_Field]) >4;
 
Ad

Advertisements


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