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 ...
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 ...
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 ...
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 ...
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...
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...
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...
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...
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...
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":
New : CMS Releases 2009 HCPCS Level II Codes... New : CMS Releases 2009 HCPCS Level II Codes Alpha-Numeric HCPCS File Alpha-Numeric Index Table o.. http://tinyurl.com/559wrf 2:42 PM Oct 31st, 2008 from twitterfeed
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