Ok I'm fairly new to Access, so this may sound really easy to some, or perhaps not. So basically this is what I want to do. Let me give you some background info first.
I have a database with 2 tables. One contains records of items and the other is records of catagories. Each item is assigned to a specific catagory.
I have a form. The user uses this form to select 1 or more catagories, and types in a number in a box and clicks a button. This then produces a Report.
Say, for example, the user has selected Catagory B and Catagory C and Catagory F and chosen a quanitity of 5... The report will list Catagories B, C and F and list 5 Item records under each of those catagories.
So it would be
Catagory B
Item 1
Item 2
Item 3
Item 4
Item 5
Catagory C
Item 43
Item 44
Item 45
Item 46
Item 47
Catagory F
Item 32
Item 33
Item 34
Item 35
Item 36
All this works completely fine. So here's the hard bit which I'm asking all your help for... When the user clicks the generate report button, I want all the record results to be random. So under each catagory they list, there are X number of randomly-selected records but obviously only for that catagory. Is this actually possible?
Any help would be a life-saver.
Thanks!!!
I have a database with 2 tables. One contains records of items and the other is records of catagories. Each item is assigned to a specific catagory.
I have a form. The user uses this form to select 1 or more catagories, and types in a number in a box and clicks a button. This then produces a Report.
Say, for example, the user has selected Catagory B and Catagory C and Catagory F and chosen a quanitity of 5... The report will list Catagories B, C and F and list 5 Item records under each of those catagories.
So it would be
Catagory B
Item 1
Item 2
Item 3
Item 4
Item 5
Catagory C
Item 43
Item 44
Item 45
Item 46
Item 47
Catagory F
Item 32
Item 33
Item 34
Item 35
Item 36
All this works completely fine. So here's the hard bit which I'm asking all your help for... When the user clicks the generate report button, I want all the record results to be random. So under each catagory they list, there are X number of randomly-selected records but obviously only for that catagory. Is this actually possible?
Any help would be a life-saver.
Thanks!!!
Attachments
Last edited: