E
Emilio
Hi,
I am a newbie and need to be able to close a form when
opening another one, but because I am using (code
provided by someone who helped me before):
-------------------------------------
Dim mbooOKToClose As Boolean
-------------------------------------
Private Sub Form_Unload(Cancel As Integer)
If mbooOKToClose Then
Cancel = False
Else
Cancel = True
End If
End Sub
--------------------------------------
Private Sub Exit_Calendar_Click()
mbooOKToClose = True
DoCmd.Close
End Sub
---------------------------------------
I have 1 form ("frmCheckOrders")
that in order to open has to close "frmJobEntry" first.
I tried different ways to force:
Close_Form_Click (in "frmJobEntry")
to work from the
Private Sub Form_Open in "frmCheckOrders"
but I can't get it to work
The other way I was trying is in Lost Focus
in "frmJobEntry":
If "frmCheckOrders" is open then ......... or
If Not IsNUll "frmCheckOrders".field then........
but with my limited knowledge, can't figure it out.
Any help is appreciated,
Emilio
I am a newbie and need to be able to close a form when
opening another one, but because I am using (code
provided by someone who helped me before):
-------------------------------------
Dim mbooOKToClose As Boolean
-------------------------------------
Private Sub Form_Unload(Cancel As Integer)
If mbooOKToClose Then
Cancel = False
Else
Cancel = True
End If
End Sub
--------------------------------------
Private Sub Exit_Calendar_Click()
mbooOKToClose = True
DoCmd.Close
End Sub
---------------------------------------
I have 1 form ("frmCheckOrders")
that in order to open has to close "frmJobEntry" first.
I tried different ways to force:
Close_Form_Click (in "frmJobEntry")
to work from the
Private Sub Form_Open in "frmCheckOrders"
but I can't get it to work
The other way I was trying is in Lost Focus
in "frmJobEntry":
If "frmCheckOrders" is open then ......... or
If Not IsNUll "frmCheckOrders".field then........
but with my limited knowledge, can't figure it out.
Any help is appreciated,
Emilio