On my app I have an Options form with an option group that says 'Docked' or 'Moveable'. This is so my users can control the look of certain forms. The value of the option group is Docked =1, Moveable = 2. This value is then passed to a global variable .
********************************
Private Sub FrameWindowStyle_AfterUpdate()
GBL_windowStyle = FrameWindowStyle.Value
End Sub
********************************
The global variable then sets the Form's pop-up value to true or false depending like this:
**********************
Private Sub Form_Load()
If GBL_windowStyle = 1 Then
Form.PopUp = True
End If
If GBL_windowStyle = 2 Then
Form.PopUp = False
End If
End Sub
***********************
But i get a VB pop error msg that says
Run-time error '2136'
To set this property , open the form or report in Design View
WTF????
Help pls!!
********************************
Private Sub FrameWindowStyle_AfterUpdate()
GBL_windowStyle = FrameWindowStyle.Value
End Sub
********************************
The global variable then sets the Form's pop-up value to true or false depending like this:
**********************
Private Sub Form_Load()
If GBL_windowStyle = 1 Then
Form.PopUp = True
End If
If GBL_windowStyle = 2 Then
Form.PopUp = False
End If
End Sub
***********************
But i get a VB pop error msg that says
Run-time error '2136'
To set this property , open the form or report in Design View
WTF????

Help pls!!