Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: sort alpha numeric

Started 1 month, 2 weeks ago by seeker
I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in this text field so that I can add 1 to create a new account number for a new customer. I have tried max(mid([cus:number]), 3,len([cus:number])) in a aggregate query and that does not return the max number after letter ...
Site: Microsoft Office (Excel, Word) forum - OfficeFrustration  Microsoft Office (Excel, Word) forum - OfficeFrustration - site profile
Forum: Running & Setting Up Queries  Running & Setting Up Queries - forum profile
Total authors: 6 authors
Total thread posts: 7 posts
Thread activity: no new posts during last week
Domain info for: officefrustration.com

Other posts in this thread:

fredg replied 1 month, 2 weeks ago
On Tue, 27 Oct 2009 18:20:01 -0700, seeker wrote: I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in this text field so that I can add 1 to create a new account number for a new customer. I have tried max(mid([cus:number]), 3,len([cus:number])) in a aggregate ...

fredg external usenet poster replied 1 month, 2 weeks ago
On Tue, 27 Oct 2009 18:20:01 -0700, seeker wrote: I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in this text field so that I can add 1 to create a new account number for a new customer. I have tried max(mid([cus:number]), 3,len([cus:number])) in a aggregate ...

seeker replied 1 month, 2 weeks ago
The following query works; select max(cint(mid([cus:number],3,len([cus:number])))) as maxnum from customer where [cus:number] like 'H*' FYI for others that might be having the same problem. "seeker" wrote: I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in ...

seeker external usenet poster replied 1 month, 2 weeks ago
The following query works; select max(cint(mid([cus:number],3,len([cus:number])))) as maxnum from customer where [cus:number] like 'H*' FYI for others that might be having the same problem. "seeker" wrote: I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in ...

TedMi replied 1 month, 2 weeks ago
Because of the title of your post, I'm assuming that you need to sort on the account numbers. Do you realize that with this numbering scheme, all account numbers with first 3 characters A-1 will sort ahead of numbers beginning A-2, e.g. A-1 A-10 A-11 all other numbers in the form A-1 followed by any number of digits A-2 A-20 etc. -TedMi "seeker" wrote in message ... I have ...

TedMi external usenet poster replied 1 month, 2 weeks ago
Because of the title of your post, I'm assuming that you need to sort on the account numbers. Do you realize that with this numbering scheme, all account numbers with first 3 characters A-1 will sort ahead of numbers beginning A-2, e.g. A-1 A-10 A-11 all other numbers in the form A-1 followed by any number of digits A-2 A-20 etc. -TedMi "seeker" wrote in message ... I have ...

 

Top contributing authors

Name
Posts
seeker
2
user's latest post:
sort alpha numeric
Published (2009-10-28 02:31:00)
The following query works; select max(cint(mid([cus:number],3,len([cus:number])))) as maxnum from customer where [cus:number] like 'H*' FYI for others that might be having the same problem. "seeker" wrote: I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in this text field so that I can add 1 to...
seeker external usenet poster
2
user's latest post:
sort alpha numeric
Published (2009-10-28 02:31:00)
The following query works; select max(cint(mid([cus:number],3,len([cus:number])))) as maxnum from customer where [cus:number] like 'H*' FYI for others that might be having the same problem. "seeker" wrote: I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in this text field so that I can add 1 to...
fredg
1
user's latest post:
sort alpha numeric
Published (2009-10-28 02:27:00)
On Tue, 27 Oct 2009 18:20:01 -0700, seeker wrote: I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in this text field so that I can add 1 to create a new account number for a new customer. I have tried max(mid([cus:number]), 3,len([cus:number])) in a aggregate query and that does not return the max number after letter and dash...
TedMi
1
user's latest post:
sort alpha numeric
Published (2009-10-28 15:09:00)
Because of the title of your post, I'm assuming that you need to sort on the account numbers. Do you realize that with this numbering scheme, all account numbers with first 3 characters A-1 will sort ahead of numbers beginning A-2, e.g. A-1 A-10 A-11 all other numbers in the form A-1 followed by any number of digits A-2 A-20 etc. -TedMi "seeker" wrote in message ... I have a field which lists customer account numbers as...
fredg external usenet poster
1
user's latest post:
sort alpha numeric
Published (2009-10-28 02:27:00)
On Tue, 27 Oct 2009 18:20:01 -0700, seeker wrote: I have a field which lists customer account numbers as A-1, A-2, Through A-999 if there are that many customers that start with A. I need to find the maximum number in this text field so that I can add 1 to create a new account number for a new customer. I have tried max(mid([cus:number]), 3,len([cus:number])) in a aggregate query and that does not return the max number after letter and dash...
TedMi external usenet poster
1
user's latest post:
sort alpha numeric
Published (2009-10-28 15:09:00)
Because of the title of your post, I'm assuming that you need to sort on the account numbers. Do you realize that with this numbering scheme, all account numbers with first 3 characters A-1 will sort ahead of numbers beginning A-2, e.g. A-1 A-10 A-11 all other numbers in the form A-1 followed by any number of digits A-2 A-20 etc. -TedMi "seeker" wrote in message ... I have a field which lists customer account numbers as...

Related threads on "Microsoft Office (Excel, Word) forum - OfficeFrustration":

Related threads on other sites:

Thread profile page for "sort alpha numeric" on http://www.officefrustration.com. This report page is a snippet summary view from a single thread "sort alpha numeric", located on the Message Board at http://www.officefrustration.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity