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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find longest string in text field (e.g. surname)

Status
Not open for further replies.

cjashwell

MIS
Jul 10, 2001
80
GB
Hi,
Can someone tell me how to go about finding the longest string in a text field - in this case, I want to know which is the longest surname in the Surname field?
Any help much appreciated. Best wishes, Corin Ashwell
 
If you are doing this in a query, create a new field the field:

LongestName: len([Surname])

Then, sort Descending on this field and the longest name will appear first.
-Chopper


 
Brilliant! Thanks very much indeed, guys! Best wishes, Corin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top