G
Guest
I have a form "Frm_Header" which has on it a sub form "Frm_Header_Sub", which
is continuous.
On the Frm_Header, there is a field "Pass", when this field is changed I
want it to automatically change the value in a field "Pass_Sub" on any of the
records in the sub form Frm_Header_Sub.
The forms are linked by Master Field "ID" and Child Field "ID_Sub".
I have tried the following code on the On Click event of a command Buttton
"Update_Btn"
Private Sub Update_Btn_Click()
Update.Tbl_Header_Sub
Set Tbl_Header_Sub.Pass_Sub = Tbl_Header.Pass
WHERE Tbl_Header_Sub.ID_Sub = Tbl_Header.ID
End Sub
This is returning an error message "Variable not defined" and highlighting
Update
This is probably something simple that I have overlooked, but I would
appreciate help as I am quite new to Access97, and usually use macros to
carry out actions, but I want to learn more code.
Thanks in advance
Joe
is continuous.
On the Frm_Header, there is a field "Pass", when this field is changed I
want it to automatically change the value in a field "Pass_Sub" on any of the
records in the sub form Frm_Header_Sub.
The forms are linked by Master Field "ID" and Child Field "ID_Sub".
I have tried the following code on the On Click event of a command Buttton
"Update_Btn"
Private Sub Update_Btn_Click()
Update.Tbl_Header_Sub
Set Tbl_Header_Sub.Pass_Sub = Tbl_Header.Pass
WHERE Tbl_Header_Sub.ID_Sub = Tbl_Header.ID
End Sub
This is returning an error message "Variable not defined" and highlighting
Update
This is probably something simple that I have overlooked, but I would
appreciate help as I am quite new to Access97, and usually use macros to
carry out actions, but I want to learn more code.
Thanks in advance
Joe