Hi guys,
I'm creating a new table, and want to create a field whereby when you enter a new record, a random 'Customer ID' is generated with four digits, which is never duplicated.
1. Create a table with a field called Customer ID which is of type Long Integer.
2. Create a record in that table with a value of 999 in the Customer ID field.
3. Change the Custoemr ID field type to AutoNumber.
4. Delete the record created in step 2.
Auto numbers will then be created from 1000 up - they won't be random though, there'll be sequential, but they will be unique.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.