Hi,
Could someone tell me how I can set the value of a control in my main form from an AfterUpdate event in my subform? My simplified code in the subform event is as follows:
<---Here's where it errors out
I get a run-time error 2448 "You can't assign a value to this object." frmMain is the main form and txtControl is the control in the main form that I want to assign the strControl value to. Any ideas of how to make this work?
Thanks,
ddub
Could someone tell me how I can set the value of a control in my main form from an AfterUpdate event in my subform? My simplified code in the subform event is as follows:
Code:
Dim strControl as String
strControl="Something"
forms!frmMain!txtControl=strControl
I get a run-time error 2448 "You can't assign a value to this object." frmMain is the main form and txtControl is the control in the main form that I want to assign the strControl value to. Any ideas of how to make this work?
Thanks,
ddub