P
Peter Hibbs
Access 2003
I have a main form (frmSuppliers).
On this form I have a tab control (tabSupplier).
On the first page of the tab control I have a subform (frmProducts).
The main form is bound to table tblSuppliers (via a query) and the
subform is bound to table tblProducts (also via a query). Both forms
are linked together on field SupCode.
In the Current event of the subform (frmProducts) I have some code
which recalculates the values of several fields. What I want to do is
when the user clicks on Page 0 of the Tab control on the main form I
want to trigger the Current event of the subform so that the
calculations are done again. Something like :-
Private Sub tabSupplier_Change()
If tabSupplier = 0 Then
'trigger Forms!frmSuppliers!frmProducts!Current()
End If
I know I could write a routine in a Module and call the routine from
the main form but there are quite a few fields to be changed so it
gets a bit messy.
Is there any way to do this?
TIA
Peter Hibbs.
I have a main form (frmSuppliers).
On this form I have a tab control (tabSupplier).
On the first page of the tab control I have a subform (frmProducts).
The main form is bound to table tblSuppliers (via a query) and the
subform is bound to table tblProducts (also via a query). Both forms
are linked together on field SupCode.
In the Current event of the subform (frmProducts) I have some code
which recalculates the values of several fields. What I want to do is
when the user clicks on Page 0 of the Tab control on the main form I
want to trigger the Current event of the subform so that the
calculations are done again. Something like :-
Private Sub tabSupplier_Change()
If tabSupplier = 0 Then
'trigger Forms!frmSuppliers!frmProducts!Current()
End If
I know I could write a routine in a Module and call the routine from
the main form but there are quite a few fields to be changed so it
gets a bit messy.
Is there any way to do this?
TIA
Peter Hibbs.