SET may only be used on class instance assignments
You used a Set statement to try to assign something other than a object reference to a variable. For example:
Class MyClass
Public X As Integer
End Class
Dim MyObjRef As New MyClass
Set MyObjRef.X = 5 ' Illegal
Let MyObjRef.X = 5 ' Legal
MyObjRef.X = 5 ' Legal
Remove the Set keyword or replace it with the Let keyword.