G
Guest
I created a form with a combo box. On this combo box I have a "NotInList"
code to open a form call "Customers" and I placed an "OnLoad" code on the
customers form.
My problem is the customers form does not open as expected. I am getting a
run-time error which states "You can't assign a value to this object"
The onload code on the customers form is as follows:
Private Sub Form_Load()
If IsNull(Me.OpenArgs) = False Then
Me.CompanyName = Me.OpenArgs
End If
End Sub
Someone please help me. I am completed lost. This code is working fine in 3
other access databases, but for some reason it will not work in this new one.
Please help.
Thank you.
code to open a form call "Customers" and I placed an "OnLoad" code on the
customers form.
My problem is the customers form does not open as expected. I am getting a
run-time error which states "You can't assign a value to this object"
The onload code on the customers form is as follows:
Private Sub Form_Load()
If IsNull(Me.OpenArgs) = False Then
Me.CompanyName = Me.OpenArgs
End If
End Sub
Someone please help me. I am completed lost. This code is working fine in 3
other access databases, but for some reason it will not work in this new one.
Please help.
Thank you.