M
MackBlale
I have created a database to track employees for a military contract. I need
to create a field for a unique client ID number that is only filled in when I
click a button on the form "Assign Client ID" I want to create a module that
will generate a random number between 1 and 10,000, check the records to make
sure it does not already exist as a client id, and then insert the number
into the current record. If the number does already exist, I want to
continue generating numbers and checking until an unused number is found.
The numbers must be random and the employees will never number more than
10,000.
to create a field for a unique client ID number that is only filled in when I
click a button on the form "Assign Client ID" I want to create a module that
will generate a random number between 1 and 10,000, check the records to make
sure it does not already exist as a client id, and then insert the number
into the current record. If the number does already exist, I want to
continue generating numbers and checking until an unused number is found.
The numbers must be random and the employees will never number more than
10,000.