Gustav Brock
gustav at cactus.dk
Sat Nov 8 12:15:14 CST 2003
Hi John
Couldn't you cancel the opening when this should not be allowed and
then call a subfunction to open the form not visible:
<code>
Public Sub Form_Open(Cancel As Integer)
Cancel = IsVisibleDisabledForCurrentUser()
If Cancel = True Then
Call SubFunctionToOpenFormNotVisible(Me.Name)
End If
End Sub
</code>
/gustav
>> I have a form I want to open invisible every time it opens, regardless of
>> how it is opened. I placed me.visible = false in OnOpen. That doesn't
>> work! The strange part is that if I place a breakpoint on the line and
>> stop execution on the me.visible = false, then continue, the form
>> correctly hides itself.