I am trying to use the expression building on a command button to build a sequential button that looks at the document id field and when you click the sequential number command button it populated the sequential field with what version of the document this is (based on what is in the database already).
Example: We have 3 records in the database so far AR672, AR535, and AR771. Each of these show 01 for sequence number as they are the first of that document number to be used. If I update AR672 with a new version and record that in the database I enter AR672 in the document field and hit sequential number command button.. I would need it to populate 02 as 01 has already been used.
Any help is greatly appreciated.
Example: We have 3 records in the database so far AR672, AR535, and AR771. Each of these show 01 for sequence number as they are the first of that document number to be used. If I update AR672 with a new version and record that in the database I enter AR672 in the document field and hit sequential number command button.. I would need it to populate 02 as 01 has already been used.
Any help is greatly appreciated.