I have a form with one subform. The subform is in datasheet view, nothing unusual about it.
The main form is named "OtherMain"
The subform name is "OtherSubform"
The subform source object is "OtherSubform" (same as it's name on the main form).
On the Main form, I have a control button and in it's event code I have the following statements:
With Forms![OtherMain]![OtherSubform].Form
.setfocus
When the code hits the .setfocus stamement, I get a run time error 2449 "there is an invalid method in an expression".
Anyone know why using a .setfocus statement on a subform won't work?
Thanks!
Paul
The main form is named "OtherMain"
The subform name is "OtherSubform"
The subform source object is "OtherSubform" (same as it's name on the main form).
On the Main form, I have a control button and in it's event code I have the following statements:
With Forms![OtherMain]![OtherSubform].Form
.setfocus
When the code hits the .setfocus stamement, I get a run time error 2449 "there is an invalid method in an expression".
Anyone know why using a .setfocus statement on a subform won't work?
Thanks!
Paul