I have two tables, one named tlkpBatch, the other named Animals.
When I buy new chickens I use a form with two text boxes called txtBatchName and txtQTY - In the batch name I type in a value such as 201110419-WhiteLayers (the numbers are the date, then a simple description), and in the txtQTY box I type in the number of birds that are in this batch.
I also have a form for the animal table where I type in information about the individual birds, this has multiple fields such as the hatch date, breed & vendor etc... and use a combobox which pulls from the tlkpBatch table so I can assign the specific animal to that batch.
Finally, at the bottom of this page I created a command button named cmdDuplicate so when I have entered the information for one of the new animals I can click that and it duplicates the record using a macro from the button wizard in Access 2010.
This all works perfectly and does exactly what I need HOWEVER, often my batches are of 100 to 200 birds, so sitting there clicking the button 200 times gets a little tedious.
Is there any way to automate this so clicking the button once will automatically create the right number of duplicates based on the QTY in my tlkpBatch table?
A real life example being I received 75 chickens yesterday, created my batch name & put 75 in the QTY field, saved it then opened up my animals form, created a new record with all of the information about one of the specific animals in then sat and clicked the duplicate button 74 times to get my birds entered, it would be great to have the button take my QTY of 75, know I just created one record and duplicate it 74 times.
Thank You very much in advance for anyone willing to help with this.