Keep code out of the Load event and put it in a Public form function:
Load Myform
Result = Myform.OpenFunction
If Result = Fail Then
Unload.Myform
Else
Myform.Show [vbModal/vbModeless]
End if
![]()
|
Results 1 to 7 of 7
Thread: Abort a form in Load eventThreaded View
|
Click Here to Expand Forum to Full Width |