Query

momoko

Registered User.
Local time
Today, 06:09
Joined
Oct 7, 2001
Messages
41
Hi,
I have a text field, how can I use query to filter out those have more than 7 character.

Thks,
 
Create a field in the query and name it
NbCar([textbox])
and give it the condition
>7
Newman
 
Not familiar with NbCar but if you use Len(Trim([myfield])) as one of your query fields, then select <7 in the criteria row, that should do it.
 
Sorry, my mistake.
NbCar is the french version for Len. It's hard to work with both versions at the same time.:)
Newman
By the way, adding TRIM is a good idea, never done this but I should have!
 
To be honest, I left out something too...

Should REALLY be

Len( Trim( Nz( [myfield], "" ) ) ) and criteria <7

Unless you want zero-length to be ignored.
 

Users who are viewing this thread

Back
Top Bottom