I am developing a Housing Benefit database where each claimant has his own reference number eg. 836245 ( this 6 digit number is manually added as a unique reference for that claimant(Primary Key).
However, if the claimant moves property and reapplies for benefit he must keep the same 6 digit number.
This will cause a problem as all records relating to the reference number must be kept for archive purposes.
Is there a way of checking the table when a reference is keyed onto a form so that:
a. if no record exists append 00 onto the end of the reference string as a type of check digit.
b. if the reference does exist append 01 onto the end or if 01 exists, 02 and so on.
Any help will be greatly appreciated.
However, if the claimant moves property and reapplies for benefit he must keep the same 6 digit number.
This will cause a problem as all records relating to the reference number must be kept for archive purposes.
Is there a way of checking the table when a reference is keyed onto a form so that:
a. if no record exists append 00 onto the end of the reference string as a type of check digit.
b. if the reference does exist append 01 onto the end or if 01 exists, 02 and so on.
Any help will be greatly appreciated.