Button on subform to change data in the main form (1 Viewer)

Lanason

Registered User.
Local time
Today, 19:35
Joined
Sep 12, 2003
Messages
258
I have a button on a subform that updates the record in the subform. I also want to change a field in the main form at the same time.
from the VBA code on the button in the subform, I have written "me.[frmMAIN]!{MainField] = "NewValue"
doesn't work what am I doing wrong???
been going round in circles ......
 

theDBguy

I’m here to help
Staff member
Local time
Today, 11:35
Joined
Oct 29, 2018
Messages
21,527
Hi. Try Me.Parent.
 

Micron

AWF VIP
Local time
Today, 14:35
Joined
Oct 20, 2018
Messages
3,478
you really have that brace, or is it a typo?
"me.[frmMAIN]!{MainField]
 

Users who are viewing this thread

Top Bottom