B
brback
hi, i made a "form1" with a yes/no exit msgbox with this as a code:
Private Sub command53_Click()
Dim command53 As Integer
If Income = 0 Then
command53 = MsgBox("mymsg", vbYesNo, "headline")
Else: DoCmd.Close
End If
If command53 = vbNo Then
DoCmd.Close
End If
End Sub
This works perfectly fine when i only have "form1" open, but when i open
"form1" from another form
which is called "menu", then the msgbox command closes the form "menu" first,
then "form1"
Could anyone help me to specify what form the code should choose to close ?
Thanks alot in advance
Private Sub command53_Click()
Dim command53 As Integer
If Income = 0 Then
command53 = MsgBox("mymsg", vbYesNo, "headline")
Else: DoCmd.Close
End If
If command53 = vbNo Then
DoCmd.Close
End If
End Sub
This works perfectly fine when i only have "form1" open, but when i open
"form1" from another form
which is called "menu", then the msgbox command closes the form "menu" first,
then "form1"
Could anyone help me to specify what form the code should choose to close ?
Thanks alot in advance