Hello,
I have a tabbed form. On each tab there is a subform. On Subform1 I have a series of combo boxes whose names are Combo1, Combo2, Combo3, etc. and button that if the user clicks will write the word "Yes" in all the combo boxes on the form. The line of code that works for the first combo box is:
I want to have the same functionality on Subform2. On Subform2 I have the same line of code, except it references Subform2
When I click the button the second subform I get a run time error 2465 Application defined or object defined error.
If the line of code works on Subform1, why does it throw this error on Subform2 and what can I do to achieve the functionality I desire on Subform2?
I have a tabbed form. On each tab there is a subform. On Subform1 I have a series of combo boxes whose names are Combo1, Combo2, Combo3, etc. and button that if the user clicks will write the word "Yes" in all the combo boxes on the form. The line of code that works for the first combo box is:
Code:
Forms!frmMain.Subform1.Form.Combo1 = "Yes"
Code:
Forms!frmMain.Subform2Form.Combo1 = "Yes"
If the line of code works on Subform1, why does it throw this error on Subform2 and what can I do to achieve the functionality I desire on Subform2?
Comment