I have a sub-form called MaintPartsUsed that is displayed in continuous form format. The sub-form may have from 1 to many records associated to the record in the main (parent) form.
I would like to be able to access each record in the sub-form. Then copy certain fields to an excel template (This I have the code for and can do). Then access the next record in the sub-form, copy to excel. continue this loop until I have copied the last record in the sub-form to excel.
So, The help I need is just to access the first record in the sub-form, I'll then insert my code to copy fields to excel, then loop to the next record until all records are copied.
Thanks in advance.
Rick
I would like to be able to access each record in the sub-form. Then copy certain fields to an excel template (This I have the code for and can do). Then access the next record in the sub-form, copy to excel. continue this loop until I have copied the last record in the sub-form to excel.
So, The help I need is just to access the first record in the sub-form, I'll then insert my code to copy fields to excel, then loop to the next record until all records are copied.
Thanks in advance.
Rick