This has been a problem for me for quite a while, but I'm sure someone has done something similar before.
I have frmMaintAction (Main form) and subfrmMaintPartsUsed (Sub Form). The forms are Linked by a field called MaintID.
The Sub Form is in Continuous Forms view (It is all the Maintenance Parts Used during a Maintenance Action).
My Problem:
I have a button on the main form called FSR (Field Service Report) which will copy information from the main form and put it in an excel template (this works fine)....BUT, I also need to copy all the Maint Parts Used to the excel template (this is where I am stuck)
I would greatly appreciate help in the code for accessing records in the Sub Form that are linked to the Main Form while in the Main Form.
Hope this makes sense.
Thanks,
Rick
I have frmMaintAction (Main form) and subfrmMaintPartsUsed (Sub Form). The forms are Linked by a field called MaintID.
The Sub Form is in Continuous Forms view (It is all the Maintenance Parts Used during a Maintenance Action).
My Problem:
I have a button on the main form called FSR (Field Service Report) which will copy information from the main form and put it in an excel template (this works fine)....BUT, I also need to copy all the Maint Parts Used to the excel template (this is where I am stuck)
I would greatly appreciate help in the code for accessing records in the Sub Form that are linked to the Main Form while in the Main Form.
Hope this makes sense.
Thanks,
Rick