Generating a random ID on a form.

S

scubadiver

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
 
G

Golfinray

Type functions on the help menu and look at the RND function. The syntax is
rnd([number you want to generate])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top