[mso] Re: Random in Access or Excel

  • From: "Glenda Wells" <gwells@xxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Mon, 4 Aug 2003 14:04:04 -0400

Thanks Anthony.  This is better than the way I'm currently doing it.  I
can always manually adjust any duplicate numbers.  Hmmmmm....getting
closer to elegance.  /g

-----Original Message-----
From: Colli, Anthony G [mailto:Anthony.Colli@xxxxxxx]=20
Sent: Monday, August 04, 2003 1:38 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Random in Access or Excel


/g
In Access you can use Format(Rnd(IsNull([ID])*0+1)*100,0) in a query
where [ID] is the 1-50 number, then sort on it. BUT beware since the
result is a random number, there could be two or more of the same random
numbers in any query.

In Access Rnd() is the random function.

-Anthony

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: