FancyPrairie
Programmer
I have created a class and assign a variable to the class from within my form
Everything works fine until I add a Split Form to my form (Access 2007). On the Form_Resize event Access 2007 doesn't recognize myControl (thinks it is nothing). I can see that it is nothing via debug by examining Me. However, if I examine Forms!MyForm I can see that myControl still exists.
So my question is...what is the syntax for accessing myControl.
I've tried this: Forms!MyForm.myControl.Center ... but it doesn't work
Code:
Dim myControl as MyClass
...
Private Sub Form_Load()
Set myControl = New MyClass
End Sub
Private Sub Form_Resize()
myControl.Center
End Sub
So my question is...what is the syntax for accessing myControl.
I've tried this: Forms!MyForm.myControl.Center ... but it doesn't work