M momoko Registered User. Local time Today, 16:09 Joined Oct 7, 2001 Messages 41 Oct 22, 2002 #1 Hi, I have a text field, how can I use query to filter out those have more than 7 character. Thks,
Newman Québécois Local time Today, 11:09 Joined Aug 26, 2002 Messages 766 Oct 22, 2002 #2 Create a field in the query and name it NbCar([textbox]) and give it the condition >7 Newman
The_Doc_Man Immoderate Moderator Staff member Local time Today, 10:09 Joined Feb 28, 2001 Messages 30,568 Oct 22, 2002 #3 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.
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.
Newman Québécois Local time Today, 11:09 Joined Aug 26, 2002 Messages 766 Oct 22, 2002 #4 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!
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!
The_Doc_Man Immoderate Moderator Staff member Local time Today, 10:09 Joined Feb 28, 2001 Messages 30,568 Oct 22, 2002 #5 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.
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.