Dbyte
Technical User
- Mar 6, 2002
- 87
Main form is called frmNewTicket, subform is called fsubClose. fsubClose's default visible property is No. I created a command button on frmNewTicket & for its OnClick event I have the following code:
When I click on the command button I get the following error: "Run-time error '2465': Microsoft Office Access can't find the field 'Forms' referred to in your expression."
I have also tried:
Which gives me essentially the same error.
The subform is on the main form & I know it's loaded because when I step thru the expression builder both frmNewTicket & fsubClose are listed under Loaded Forms.
I don't want to use a Tab control due to its layout restrictions.
Code:
Private Sub Command87_Click()
Me!Forms!fsubClose!Form!Visible = True
End Sub
I have also tried:
Code:
Me!fsubClose!Form!Visible = True
The subform is on the main form & I know it's loaded because when I step thru the expression builder both frmNewTicket & fsubClose are listed under Loaded Forms.
I don't want to use a Tab control due to its layout restrictions.