G
Guest
I am trying to find a way of determining programatically whether a control is
on the page of a tab control or not. I have set a reference to the object,
objControl and started off by trying.
If objControl.Parent.ControlType = acPage Then
...
Else
...
End If
However this property only exists if the control is on a tab otherwise you
get an error. Is there a way of detecting if this property exists or do you
do this by generating and trapping the error?
on the page of a tab control or not. I have set a reference to the object,
objControl and started off by trying.
If objControl.Parent.ControlType = acPage Then
...
Else
...
End If
However this property only exists if the control is on a tab otherwise you
get an error. Is there a way of detecting if this property exists or do you
do this by generating and trapping the error?