On Monday, April 09, 2007 3:02 PM Kent Belan wrote:

>I need to seek the reverse of a character field.
>I have an account number and the client wants to search by the last X
characters.

>The account number is a character field 20 spaces.

>Example: acct #: 12345678
>User enters 678 and finds all accounts that end in 678

>Anyone have a good solution ?

Untested:
Select Account from AccountTable where
right(alltrim(accntno),len(m.accntno)) = m.accntno

David L. Crooks



_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to