How can I select 20 random records from 100 existing records. I tried to create a calculated field that uses the rnd() function to generate a random number. However, it repeats the same number for each record. Thank you, Andy.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Random Records (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Random Records (2000)
- This topic has 5 replies, 3 voices, and was last updated 23 years, 5 months ago.
AuthorTopicWSandrewgibsonsw
AskWoody LoungerNovember 22, 2001 at 7:46 am #363215Viewing 1 reply threadAuthorReplies-
WSSteveH
AskWoody LoungerNovember 22, 2001 at 10:37 am #553725Try this link to Dev Ashish’s Access Web site
http://www.mvps.org/access/queries/qry0011.htm
HTH -
WScharlotte
AskWoody Lounger -
WSandrewgibsonsw
AskWoody LoungerNovember 26, 2001 at 12:09 pm #554071I didn’t really understand the answer. I initially created a query which includes a calculated field. I used rnd() and tried to supply a seed using the Now() function. However, it continued to create the same number each time. E.g. RandNumber:Int(Rnd(Now())*20+1). I also tried a Make Table query using a Random AutoNumber but this doesn’t work either. Can anyone suggest why either of these doesn’t work?
-
WScharlotte
AskWoody LoungerNovember 26, 2001 at 1:15 pm #554080You need an *existing* value that differs between records. So if you had an autonumber field called KeyID in the underlying table, then Rnd([KeyID]) should give you a unique pseudo-random number for each record in the query. The Now() function is going to return the same value to all of the records because they’re run at the same time.
-
WSandrewgibsonsw
AskWoody Lounger
-
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
39 minutes ago -
End of 10
by
Alex5723
3 hours, 20 minutes ago -
End Of 10 : Move to Linux
by
Alex5723
3 hours, 49 minutes ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
18 minutes ago -
test post
by
gtd12345
9 hours, 21 minutes ago -
Privacy and the Real ID
by
Susan Bradley
1 hour, 9 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
17 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
13 hours, 42 minutes ago -
Upgrading from Win 10
by
WSjcgc50
1 hour, 6 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
8 hours, 48 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
1 day, 5 hours ago -
The story of Windows Longhorn
by
Cybertooth
17 hours, 6 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day, 7 hours ago -
Are manuals extinct?
by
Susan Bradley
3 hours, 35 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
1 day, 16 hours ago -
Network Issue
by
Casey H
1 day, 3 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
2 days, 4 hours ago -
May 2025 Office non-Security updates
by
PKCano
2 days, 4 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days, 6 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day, 7 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
2 days, 9 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
2 days, 9 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
2 days, 16 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 day, 8 hours ago -
Asking Again here (New User and Fast change only backups)
by
thymej
3 days, 3 hours ago -
How much I spent on the Mac mini
by
Will Fastie
11 hours, 9 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
1 day, 6 hours ago -
Spring cleanup — 2025
by
Deanna McElveen
3 days, 9 hours ago -
Setting up Windows 11
by
Susan Bradley
2 days, 4 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
3 days, 5 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.