I'm working on a stored procedure that will increment a sored value by 1 when ever a new customer or vendor is created. My customer and vendor numbers are of the format C001234 and V001234 respectively.
I want to increment the stored value after a new customer or vendor is created. In other words I would like C001234 to increment to C001235 after the new customer is saved. I am having problems incrementing the field because it is a string. If I simply write an expression like CustomerID + 1 the value returned is C0012341.
Any ideas how I can do what I want?
Thanks.
Ralph
I want to increment the stored value after a new customer or vendor is created. In other words I would like C001234 to increment to C001235 after the new customer is saved. I am having problems incrementing the field because it is a string. If I simply write an expression like CustomerID + 1 the value returned is C0012341.
Any ideas how I can do what I want?
Thanks.
Ralph