Hi all...
I have searched this and other forums for how to do this. Found some hits regarding similar problems, but I just can't make it work.
I am trying to increment a contract number (beginning with the one of greatest numerical value in my table) by 1 whenever a new contract number is needed.
The difficulty I have is the existing number format is always supposed to begin with the prefix 'EMC-'. The EMC- is always followed by a four digit number. If the most recient number is for example: EMC-1902, then I need to increment that to EMC-1903 ... and so on. I would like to have an unbound control show the new contract number so that I could add the record to the table programaticly (that part I can do), however, if it's easier to do it another way, then so be it.
The name of the table that contains the existing contract numbers is: tblContract_Header, and the field in it that contains the numbers is called: Contract_Number
Thanks for your thoughts,
chuck
I have searched this and other forums for how to do this. Found some hits regarding similar problems, but I just can't make it work.
I am trying to increment a contract number (beginning with the one of greatest numerical value in my table) by 1 whenever a new contract number is needed.
The difficulty I have is the existing number format is always supposed to begin with the prefix 'EMC-'. The EMC- is always followed by a four digit number. If the most recient number is for example: EMC-1902, then I need to increment that to EMC-1903 ... and so on. I would like to have an unbound control show the new contract number so that I could add the record to the table programaticly (that part I can do), however, if it's easier to do it another way, then so be it.
The name of the table that contains the existing contract numbers is: tblContract_Header, and the field in it that contains the numbers is called: Contract_Number
Thanks for your thoughts,
chuck