Hi n Happy New Year to all!!
I'm getting Error: 438, Message: Object doesn't support this property or method. I'm getting this error while using LASsie from PetersSoftware for permissions and this happens when I try to put restriction on some Control on the Form. It works fine if i put restriction on full form, but whenever I try to do this for the 'Control' i get into this error.
Debug shows that I'm getting error when i use 'obj.Name' object on line 2 and 3 of following procedure. obj is defined as Dim obj AS Object, but I could not find this object has been initialized anywhere using 'Set obj = ...' in the program except in the end Set obj = Nothing.
I could guess that question is not clear enough as I'm not sure what more should I provide in this regard... and this is first time i'm coming across 'Object' type, but any direction will be helpful. Reference Library i think is set for 'Object' types or else i would get some other error?
Thanks in advance,
K
1: Do While Not rst.EOF
2: Debug.Print obj.Name
3: If rst!IsObjectBased And rst!ObjectName = obj.Name And rst!Restricted 4: Then
... '* This form is restricted for the current user
'mb "You are not allowed to view this " & strObjType & "."
iDenyAccessToThisObject = True
GoTo Continue
End If
rst.MoveNext
Loop
I'm getting Error: 438, Message: Object doesn't support this property or method. I'm getting this error while using LASsie from PetersSoftware for permissions and this happens when I try to put restriction on some Control on the Form. It works fine if i put restriction on full form, but whenever I try to do this for the 'Control' i get into this error.
Debug shows that I'm getting error when i use 'obj.Name' object on line 2 and 3 of following procedure. obj is defined as Dim obj AS Object, but I could not find this object has been initialized anywhere using 'Set obj = ...' in the program except in the end Set obj = Nothing.
I could guess that question is not clear enough as I'm not sure what more should I provide in this regard... and this is first time i'm coming across 'Object' type, but any direction will be helpful. Reference Library i think is set for 'Object' types or else i would get some other error?
Thanks in advance,
K
1: Do While Not rst.EOF
2: Debug.Print obj.Name
3: If rst!IsObjectBased And rst!ObjectName = obj.Name And rst!Restricted 4: Then
... '* This form is restricted for the current user
'mb "You are not allowed to view this " & strObjType & "."
iDenyAccessToThisObject = True
GoTo Continue
End If
rst.MoveNext
Loop