PC Review


Reply
Thread Tools Rate Thread

Len function not working

 
 
=?Utf-8?B?TWljaGVsbGUgVy4=?=
Guest
Posts: n/a
 
      11th Jun 2007
I have a text field. I am trying to find all the rows where this field is
less than 4. The function is not working. It does work if I look for all rows
where it is equal to 4. I have tried < 4, <"4" and < '4'. None of these work.
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      11th Jun 2007
Assuming you've created a computed column Len([MyTextFIeld]), putting <4 as
the criteria for that field should return all rows where the len is 3
characters or less. Are you sure you have fields that meet that criteria?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Michelle W." <(E-Mail Removed)> wrote in message
news:A64A67BA-C4ED-4F77-889E-(E-Mail Removed)...
>I have a text field. I am trying to find all the rows where this field is
> less than 4. The function is not working. It does work if I look for all
> rows
> where it is equal to 4. I have tried < 4, <"4" and < '4'. None of these
> work.



 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWljaGVsbGUgVy4=?=
Guest
Posts: n/a
 
      11th Jun 2007
I thought I did but apparently not. I am working with a test database. The
query is working now (now that I have appropriate test data in it!). Thanks.

"Douglas J. Steele" wrote:

> Assuming you've created a computed column Len([MyTextFIeld]), putting <4 as
> the criteria for that field should return all rows where the len is 3
> characters or less. Are you sure you have fields that meet that criteria?
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "Michelle W." <(E-Mail Removed)> wrote in message
> news:A64A67BA-C4ED-4F77-889E-(E-Mail Removed)...
> >I have a text field. I am trying to find all the rows where this field is
> > less than 4. The function is not working. It does work if I look for all
> > rows
> > where it is equal to 4. I have tried < 4, <"4" and < '4'. None of these
> > work.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Another Len function not working Marshall Barton Microsoft Access Queries 2 16th Feb 2010 11:50 PM
RE: Another Len function not working BlairH Microsoft Access Queries 0 16th Feb 2010 06:55 PM
Microsoft.VisualBasic.Strings.Len() works, but Len() does not Tim Daim Microsoft VB .NET 5 15th Dec 2008 01:59 PM
Re: Default Value in table -- LEN: Len([ID]) vs, =Len("BILL_ID2") Douglas J. Steele Microsoft Access Database Table Design 6 23rd Jan 2007 10:12 PM
ReadFile with fix len (VB6: Open len=128) =?Utf-8?B?RG9j?= Microsoft Dot NET Framework 0 10th Feb 2004 10:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:27 AM.