Link to home
Start Free TrialLog in
Avatar of arendt73
arendt73

asked on

How to generate unique ID numbers/characters in Javascript

I have a submission form where users enter and submit information. I want to automatically generate a unique ID/tracking number for each submission (duplicate ID/tracking numbers cannot happen).  

What is the best recommend option for my request?  Can Javascript give me a unique ID for each submission?  Or is it better to give the record ID (in Access) as the ID/tracking number to the submitter? And if so, how do I extract the ID from Access?

Any suggestions is greatly appreciated.  Thank you.
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I dont think @@Identity can work for Access.

Set a Column in Access Table to ID and datatype "autonumber". this column will automaticaly create unique number for you. then whenever you make an entry to this table une this trick to retrieve the newly created unique number:

http://www.kamath.com/tutorials/tut004_autonum.asp
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.