I have a continuous form which displays a list of flower seed lot records. The name of this form is "frmBreckenridg eData." Each seed lot record has a check box control – “SelectRedord” - which can be selected or deselected. This form contains a command button which opens a work order form - “frmGermination TestWorkOrder" - in Add Data Mode. The frmGerminationT estWorkOrder work order form has a sub form - "fsubWorkOrderD ata."
The frmGerminationT estWorkOrder work order form contains a command button – “cmdAddRecord” - which creates a new work order record by generating an auto number in the “GermTestWorkOr derID” control on the form.
When I click on the cmdAddRecord command button, I would also like to use code to add seed lot record(s) to the fsubWorkOrderDa ta sub form where the frmBreckenridge Data form “SelectRecord” checkbox control = true.
I’m assuming that I need to do this by using code that creates a record set but I have no idea how to do this. I am fairly new to MS Access VBA programming so please be gentle.
Thanks.
The frmGerminationT estWorkOrder work order form contains a command button – “cmdAddRecord” - which creates a new work order record by generating an auto number in the “GermTestWorkOr derID” control on the form.
When I click on the cmdAddRecord command button, I would also like to use code to add seed lot record(s) to the fsubWorkOrderDa ta sub form where the frmBreckenridge Data form “SelectRecord” checkbox control = true.
I’m assuming that I need to do this by using code that creates a record set but I have no idea how to do this. I am fairly new to MS Access VBA programming so please be gentle.
Thanks.
Comment