G
Guest
I have a form (A) with 6 buttons on it. Made a copy of that form (AB) and
disabled 2 buttons on it. One btn opens another form(C). Form (C) on load
event, copies ID, Name and PhoneNumber from origianl form. When I use Form
(AB) to open Form (C), on load event copies ID,NAme and PhoneNumber from Form
(A).
Sub Form_Load() 'Form(C)
With Forms!frmA
Me!txtID = Forms!frmA!txtID
Me!txtName = Forms!frmA!txtName
Me!txtPhoneNumber = Forms!frmA!txtPhoneNumber
end with
end Sub
I want to make this Form_Load() event such that when it is called it will
know which Form called it and hence load its textboxes from other form,
either Form(A) or Form(AB).
disabled 2 buttons on it. One btn opens another form(C). Form (C) on load
event, copies ID, Name and PhoneNumber from origianl form. When I use Form
(AB) to open Form (C), on load event copies ID,NAme and PhoneNumber from Form
(A).
Sub Form_Load() 'Form(C)
With Forms!frmA
Me!txtID = Forms!frmA!txtID
Me!txtName = Forms!frmA!txtName
Me!txtPhoneNumber = Forms!frmA!txtPhoneNumber
end with
end Sub
I want to make this Form_Load() event such that when it is called it will
know which Form called it and hence load its textboxes from other form,
either Form(A) or Form(AB).