CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Auto number add 1

Print topic Send  topic

Author Message
deagon

Posts: 31
Posted: 07/28/2009, 9:36 AM

I have setup automatic job numbering by adding one to the last job number, it works great.

If Jobstorage20.JobNumAdd1.Value <> "" Then
Jobstorage20.JobNumAdd1.Value = Jobstorage20.JobNumAdd1.Value
Else Jobstorage20.JobNumAdd1.Value = CCDLookup("Max(Jobnum)","Jobstorage","",Conn) + 1
End if

Because we have started adding alpha numerical numbering instead of just numbers it errors out when a alpha numerical number is used. Example 3012.i instead of 3012. This clearly is a issue with adding a number one to a number with characters. Is there a way to change the code so that it adds a number 1 to the last number used but disregards the letter i or r?

Thanks for the help.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.