Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Number (Different) for each record

Status
Not open for further replies.

Sunwriter

IS-IT--Management
Jan 25, 2004
6
US
Hello:

I need to update a field in a table with a random number between 1 and 9 "for each record". Example:

RecordNum NewField
1 5
2 7
3 9
4 4
5 1
6 5
etc.

When I attempt to use the rnd() function, I end up with the "same" random number for every record.

Thanks in advance for any assistance,

Jeff
 
Use Rnd(RecordNum)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top