Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2024, 01:23 PM
capitala capitala is offline Q: How to create random list with no duplicate Windows 7 64bit Q: How to create random list with no duplicate Office 2003
Advanced Beginner
Q: How to create random list with no duplicate
 
Join Date: Nov 2013
Posts: 34
capitala is on a distinguished road
Default Q: How to create random list with no duplicate

Good great people!


I have a list of students stored in a recordset (access db). I need a vba code that:

creates a random [/B]list of students based on the recordset BUT without duplicates and PROVIDED that each student shall appear in the list.

Thanks and Best Regards
Reply With Quote
  #2  
Old 04-25-2024, 04:06 PM
Guessed's Avatar
Guessed Guessed is offline Q: How to create random list with no duplicate Windows 10 Q: How to create random list with no duplicate Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,989
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You can add a random order to a SQL query as you grab the recordset.
See sql - Random sorting query Access - Stack Overflow
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 04-25-2024, 09:16 PM
capitala capitala is offline Q: How to create random list with no duplicate Windows 7 64bit Q: How to create random list with no duplicate Office 2003
Advanced Beginner
Q: How to create random list with no duplicate
 
Join Date: Nov 2013
Posts: 34
capitala is on a distinguished road
Default

Thanks for your kind effort. But, I need to do this from within word VBA itself.
Sorry for disturb
Reply With Quote
  #4  
Old 04-25-2024, 09:49 PM
capitala capitala is offline Q: How to create random list with no duplicate Windows 7 64bit Q: How to create random list with no duplicate Office 2003
Advanced Beginner
Q: How to create random list with no duplicate
 
Join Date: Nov 2013
Posts: 34
capitala is on a distinguished road
Default

Hi, I've played around your idea. It works fine now. Thaaaaaaaaaaaaaaaaanks
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to scroll Excel list and select random name GreySquirrel PowerPoint 1 07-12-2019 12:06 PM
Create a list that contains duplicate and unique names without blanks Iced42 Excel 1 06-30-2015 04:50 PM
Random contacts being automatically added to contact list jjmclell Outlook 0 03-10-2015 07:36 AM
list of documents come up in random order - any ideas how to sort this? tallscot49 Word 0 07-18-2010 12:40 AM
Q: How to create random list with no duplicate Random names from a given list professor snape Excel 1 06-06-2009 09:39 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft