K
Kay
Hi
I have used a close button on my forms with the following code:
If MsgBox("Are you sure you want to close the form 'Client details'?",
vbYesNo) = vbYes Then
DoCmd.Close
End If
The problem is if more than one form is open, then when I press the
close button to close a form, another form closes instead.
For example if I have client form and employee form open. On the client
form If I press the close button, a confirmation appears and if I press
yes to the confirmation to close the client form, the employee form
closes instead
Can anyone help please, it will be much appreciated
I have used a close button on my forms with the following code:
If MsgBox("Are you sure you want to close the form 'Client details'?",
vbYesNo) = vbYes Then
DoCmd.Close
End If
The problem is if more than one form is open, then when I press the
close button to close a form, another form closes instead.
For example if I have client form and employee form open. On the client
form If I press the close button, a confirmation appears and if I press
yes to the confirmation to close the client form, the employee form
closes instead
Can anyone help please, it will be much appreciated