I tested the Microsoft article "How to Fill a Table with Random Records from another table", see link below. It works great! However, I am trying to automate how to enter the number of records to fill in a table. The example has it all contained in the module. Where the first line is "Sub BuildRandomTable(lngRequest As Long)" and to run it you need to be in the debug window and type "BuildRandomTable" followed by the number of records you want. I would like to enter the number on a form and just click a button to run the module. I am having trouble with setting "lngRequest" to the unbound text box I set up to enter the number of records.<br><br>Any suggestions? <br>Here is the link:<br><A HREF=" TARGET="_new">