Each record I create has a unique ID. When I create an new record that ID automatically increases by increments of 1.
When I create a record in error, and delete the errant record, I need to reset the next ID so it retains a linear progression.
I have created a simple script that allows me to reset the unique ID of the next record
Go to Record/Request/Page [Last]
Set Next Serial Value [Visit::Statement No.; Max (Visit::Statement No.) + 1]
The above script works, except for one thing: I want the reset ID to read: "00000X" or "M0000X".
In each case the reset value increases to the next value, as required, however the FULL ID is ignored. For example "00005" when reset becomes "5". "M00005" when reset becomes "5".
How do I modify the above script to maintain the original ID configuration: "00000X" or M0000X"
Thanks