P
PlanningCM
Guest
I have a field in my table that I am trying to increment every new record in the sense like AutoNumber but it has a Letter in the field so it can't be autonumbered! So here is an example of what the record number format in the field looks like
S03-001
S03-002
etc...
I want it to increment the last 3 numbers every new record so the user doesn't have to input it. I figured implement some sort of code checking the last 3 numbers for what they are in the last record in the database but I forget the code for just picking out the last 3 characters in the string?! And after the check for last record and what the last record in the field contains how would I add 1 to the number if it is a string I keep getting a type mismap from trying to add a number to the string it gets all confused and doesn't know where to add it. Please Help me out!
JW
S03-001
S03-002
etc...
I want it to increment the last 3 numbers every new record so the user doesn't have to input it. I figured implement some sort of code checking the last 3 numbers for what they are in the last record in the database but I forget the code for just picking out the last 3 characters in the string?! And after the check for last record and what the last record in the field contains how would I add 1 to the number if it is a string I keep getting a type mismap from trying to add a number to the string it gets all confused and doesn't know where to add it. Please Help me out!
JW