Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / February 2008

Tip: Looking for answers? Try searching our database.

Generating a random ID on a form.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scubadiver - 21 Feb 2008 16:08 GMT
Hello,

I can insert a random number column into the query and shuffle it to select
the first row but I have 250,000 rows.

I want to do something (hopefully) simpler.

The query's first column contains a unique 6 digit code.

I would like to generate a random 6 digit code. The first three digits can
either be numeric (0-9) or alpha and the last three digits can only be
numeric (0-9).

It would great to press a button on a form to generate an ID. Can this be
done?

thanks
Golfinray - 21 Feb 2008 21:28 GMT
Type functions on the help menu and look at the RND function. The syntax is  
   rnd([number you want to generate])

> Hello,
>
[quoted text clipped - 13 lines]
>
> thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.