Eljefegeneo
Still trying to learn
- Local time
- Today, 10:10
- Joined
- Jan 10, 2011
- Messages
- 902
Using Access 2010
In my query I want to select only those fields less than 10 characters. So I used the criteria Len([FieldA]) <10. But I don't get anything. Looking at the criteria it is now Len([FieldA]) < "10". So now I try it again with fields less than 15 characters with the criteria Len([FieldA]) < "15" and I get some results. But if I type Len([FieldA]) > 15 and getting "15" this time I am getting results of field lengths less than and more than 15 characters. So, none of this makes any sense to me. I've looked it up and even Microsoft says that you can use Len([CountryRegion]) > 10 for countries/regions whose name is more than 10 characters long. So, can someone tell me what I am doing wrong. Any why do the quote marks appear when it is a number?
In my query I want to select only those fields less than 10 characters. So I used the criteria Len([FieldA]) <10. But I don't get anything. Looking at the criteria it is now Len([FieldA]) < "10". So now I try it again with fields less than 15 characters with the criteria Len([FieldA]) < "15" and I get some results. But if I type Len([FieldA]) > 15 and getting "15" this time I am getting results of field lengths less than and more than 15 characters. So, none of this makes any sense to me. I've looked it up and even Microsoft says that you can use Len([CountryRegion]) > 10 for countries/regions whose name is more than 10 characters long. So, can someone tell me what I am doing wrong. Any why do the quote marks appear when it is a number?