Page 3 of 3 FirstFirst 123
Results 31 to 34 of 34
  1. #31
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    John,

    Thanks for the work. Could you attached the program so I could see it and learn from it too ?

    :-)

  2. #32
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    Here you are, the test database. There is no data in it, but the Fill_Table routine does that. I have put several comments into the routine to explain what it does. If you have one of your own tables to use, so much the better, but you might have to modify the code and queries to use to right field names.

    Here is the latest summary as output from Fill_Table:

    Code:
      
               Number of records in the main file: 1000000
            Time required to create the main file: 02.417 minutes
                                                   Requested sample size: 32.26%
       Time required to calculate the sample sizes: 3 seconds
     Time required to extract the sample data set: 322592 records in 01.217 minutes
                           Expected number of sample records: 322570  ( 32.26% of 1000000 ) 
                               Actual number of sample records: 322592


    Note the discrepancy between expected number of sample records and the actual number (in red above). This is not an error; rather it is due to the rounding (to integer) used when the required sample sizes are calculated. I don't think there is anything that can (or should) be done about that - it's the same effect as you see sometimes in surveys where the results don't add to 100% due to rounding.

    Hope this helps - don't hesitate to ask for clarifications.

    John
    Attached Files Attached Files

  3. #33
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    cool thanks for sharing. I see the fill Table Routine. I will look and grasp some concept and let you know if I have any questions. :-)

  4. #34
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419
    Hi John,

    sorry just go to you.

    You have three tables, main data, main data summary, and sample data set.

    Then you have two queries that appends. one is Fill summary table, and the other is Sampling Query. And you have Totals.

    So what are each of the table and each of the queries do.
    I am trying to figure out.

    In Moduel1, you have the VBA, and what does the General do ?

    Thanks
    J

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access Program from Win xp to win 7
    By loijoc08 in forum Import/Export Data
    Replies: 5
    Last Post: 05-19-2014, 02:00 PM
  2. Old Access Program issues
    By Melicious in forum Access
    Replies: 1
    Last Post: 10-18-2012, 08:22 PM
  3. Help: Create a program access
    By uronmapu in forum Access
    Replies: 2
    Last Post: 06-02-2012, 07:18 AM
  4. Program a 30-day trial into my Access Program?
    By genghiscomm in forum Programming
    Replies: 1
    Last Post: 05-26-2011, 02:14 PM
  5. Is Access the right program for me?
    By Cole in forum Access
    Replies: 1
    Last Post: 08-07-2010, 08:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums