cdhoughton
Board Regular
- Joined
- Dec 5, 2003
- Messages
- 170
For some inexplicable reason I have a form-loading problem.
I have a button on a main menu that is intending to unload the main menu and open this form - it works for all my other buttons, but won't work here!!!!!
My code is:
---------------
Private Sub CommandButton12_Click()
Unload Me
frmPrintYrSetting.Show
End Sub
-------------------
It gives a '91' run time error: Object Variable or With block Variable not set, and highlights the frmPrintYrSetting.Show line as being the problem.
I can't see why, can anyone offer help?!?!
I have a button on a main menu that is intending to unload the main menu and open this form - it works for all my other buttons, but won't work here!!!!!
My code is:
---------------
Private Sub CommandButton12_Click()
Unload Me
frmPrintYrSetting.Show
End Sub
-------------------
It gives a '91' run time error: Object Variable or With block Variable not set, and highlights the frmPrintYrSetting.Show line as being the problem.
I can't see why, can anyone offer help?!?!