Invalid object use

Error 425

 

You've attempted an invalid assignment using a form or control.  If you want to assign a value to a property or a property value to a variable, remember to include the property name in the object specification.  For example, Form1.Command1.Caption = "OK" instead of Form1.Command1 = "OK".