![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi All, In AccessXP I have a need to select a random sampling from a large set of records giving the process some guidelines as in, from a 1000 records randomly select 50 each LOB = Auto, BOP, WC 10 each Tranaction Type = R, N, RW, C, H within each LOB This will be done daily and the # each LOB and # each Transaction Type would change weekly. Any ideas on how I would do that, again the key word is 'randomly'. thanks |
#4
| |||
| |||
|
|
"bobh" <vulca... (AT) yahoo (DOT) com> wrote in message news:6a74bb16-046a-42be-8bac-083ad4b75686 (AT) m39g2000vbm (DOT) googlegroups.com... Hi All, In AccessXP I have a need to select a random sampling from a large set of records giving the process some guidelines as in, from a 1000 records randomly select 50 each LOB = Auto, BOP, WC 10 each Tranaction Type = R, N, RW, C, H *within each LOB This will be done daily and the # each LOB and # each Transaction Type would change weekly. Any ideas on how I would do that, again the key word is 'randomly'. thanks Psuedo-random numbers are the best you can do in Access. My understanding of your question is that you want 10 of each of the 5 different transaction types for each LOB to make up the 50 total records for the LOB. In a sample of 1,000 records, you may not have a distribution that allows you to satisfy these criteria. What do you want to do if you have fewer than 10 of some transactions? Do you want to fill out the 50 (if you can) with other transaction types, or proceed with fewer than 50 for that LOB? *Does each record have a unique key? Without trying to give you a specific answer without knowing the specific questions, the basic approach is likely going to require several queries, the results of which you may want to combine with a UNION or UNION ALL query, or which you may want to process separately. Could you explain what it is that you are trying to accomplish? Perhaps that would help us understand what you want, or allow someone to suggest a different approach. -- Larry Linson, Microsoft Office Access MVP Co-author: "Microsoft Access Small Business Solutions", published by Wiley Access newsgroup support is alive and well in USENET comp.databases.ms-access |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |