Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Len as a criteria in a query

Status
Not open for further replies.

MikeKohler

Technical User
Jun 22, 2001
115
CA
Is it possible to base a query on a record's length. In the build event why doesn't len(rencordname)=8, work. I don't get any errors but none of my records show up. An example of a value in my record is 40106.00 Wouldn't this have a length of 8?
Any help in this would be much appreciated, thanks
Mike Kohler
mkohler@telusplanet.net
 
Try a query that shows you the length of some of the values in your table. A lot depends on the datatype of the column.


SELECT rencordname, LEN(rencordname) FROM myTable;
 
SELECT rencordname, LEN(cStr(rencordname)) as length FROM myTable where length = 8
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top