Why can't I do the following?:
public lastForm as Form
Private Sub Form_Load()
lastForm = Me
End Sub
VB tells me "Invalid use of property"
Printable View
Why can't I do the following?:
public lastForm as Form
Private Sub Form_Load()
lastForm = Me
End Sub
VB tells me "Invalid use of property"
You can't assign an object like you can other variables such as strings ...
You should use SET.
Set lastForm = Me
This should fix it up for ya.