98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Access Training and help » Creating random unique numbers in access
Creating random unique numbers in access
Resolved · High Priority · Version 2010
Enzo has attended:
Visio Introduction course
Excel Advanced course
Creating random unique numbers in access
How can I auto create unuique and random reference number for records so that they are all different.
RE: Creating random unique numbers in access
Hi Enzo
As we saw on the training you can use an Autonumber field (named ID for example) and change the New Values property from Increment to Random. This produces a 10 figure random number.
As half of these numbers will be negative you can create a separate calculated field instead with the Abs function. This will make all the numbers positive.
Abs([ID])
To create a shorter number you could use
Abs(Left([ID],5))
This will create a random 5 figure number.
Doug Dunn
Best STL
Will be marked as resolved in 5 days
Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.
Mon 16 Dec 2013: Automatically marked as resolved.
Training information:
- Advanced microsoft access in london
- Access course microsoft training
- Microsoft Access Training London
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Access tip:Create a custom Close button on a FormBy default, Forms that you create in Access have a full set of control buttons, that is, a title bar with Minimize, Maximize and Close buttons in the top right-hand corner and a Control Menu in the top left-hand corner. |