I need some help on this...
I have Form B sitting inside From A. Form B is not really a subform of A, they are not linked.
In Form A, I have a text field (not save in database) called PERIOD.
In Form B, I have several fields called by a query, a field in Form B called PAID_PERIOD will be updated by PERIOD field in Form A when you check the UPDATE field in FORM B. Note, the UPDATE field in FORM B is logical (a yes or no field). I tried to put a code in the ON CLICK property of the UPDATE field and it did not work.
I don't know if the the following code is correct:
Private Sub UPDATE_Click()
[FORM_A].[Form]![PAID_PERIOD] = [FORM_B].[Form]![PERIOD]
Me.FORM_B.Requery
End Sub
THANKS +++
I have Form B sitting inside From A. Form B is not really a subform of A, they are not linked.
In Form A, I have a text field (not save in database) called PERIOD.
In Form B, I have several fields called by a query, a field in Form B called PAID_PERIOD will be updated by PERIOD field in Form A when you check the UPDATE field in FORM B. Note, the UPDATE field in FORM B is logical (a yes or no field). I tried to put a code in the ON CLICK property of the UPDATE field and it did not work.
I don't know if the the following code is correct:
Private Sub UPDATE_Click()
[FORM_A].[Form]![PAID_PERIOD] = [FORM_B].[Form]![PERIOD]
Me.FORM_B.Requery
End Sub
THANKS +++