Hi Everyone,
I have a main form and continuous subform with some check boxes on the subform. When the user ticks a check box I use the code below to display a msgbox if there is an issue. However the msgbox displays behind the main form and hence locks out the main form. The main form pop up is set to yes, modal set to no and the pop of the subform is set to no.
If I hit Ctl-alt-Delete the msgbox will then appear and I can clear it. I need the mainform popup property set to yes because I hide the access border on the interface. Can anyone help me out.
Many thanks in advance for any help,
GPM
Here is the code being used, RequestAll is the name of the check box:
Private Sub RequestAll_Click()
If Me.RequestAll = True Then
If Me.Availability <> "Made" Then
Me.RequestAll = False
Me.RequestedQty = ""
MsgBox ("This item will not be produced in time for the lorry!"), vbExclamation
Exit Sub
Else
Me.RequestAll = True
Me.RequestedQty = Me.Outstanding
End If
Else
Me.RequestedQty = ""
End If
Me.Refresh
End Sub
I have a main form and continuous subform with some check boxes on the subform. When the user ticks a check box I use the code below to display a msgbox if there is an issue. However the msgbox displays behind the main form and hence locks out the main form. The main form pop up is set to yes, modal set to no and the pop of the subform is set to no.
If I hit Ctl-alt-Delete the msgbox will then appear and I can clear it. I need the mainform popup property set to yes because I hide the access border on the interface. Can anyone help me out.
Many thanks in advance for any help,
GPM
Here is the code being used, RequestAll is the name of the check box:
Private Sub RequestAll_Click()
If Me.RequestAll = True Then
If Me.Availability <> "Made" Then
Me.RequestAll = False
Me.RequestedQty = ""
MsgBox ("This item will not be produced in time for the lorry!"), vbExclamation
Exit Sub
Else
Me.RequestAll = True
Me.RequestedQty = Me.Outstanding
End If
Else
Me.RequestedQty = ""
End If
Me.Refresh
End Sub