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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Group of Records with Random Number

Status
Not open for further replies.

leadpro

Technical User
Jan 7, 2005
34
0
0
US
I need to update a group of records I query based on a select query. The field I need to update is [OrderNumber].

Preferrably, I'd like the field to update to the [SupplierID]"-"random and unique 5 digit number".

Remember, I need the same unique number for the group of records, not each record.

Thanks,

LeadPro
 
for a simple solution you could try the RND function, something like cint(rnd * 20)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top