midastouch1
New member
- Local time
- Today, 18:30
- Joined
- May 30, 2014
- Messages
- 6
I've seen a couple of posts on here related to this. I am in a similar situation as some of the other folks on here. I need to restrict the random autonumber feature to 10 digits and a positive number for a primary key. I work in the medical field, and HIPAA privacy regulations require the use of random ID numbers to identify records. Also, I need the numbers to be positive numbers because we will be using barcode scanning equipment and the possibility of truncating the negative identifier creates the possibility (admittedly remote) of having a duplicate PK barcodes. I understand that we cannot change the Access feature, but can anyone provide VBA code to generate a truly random 10 digit positive number I can use as a PK? Thanks in advance!