CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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