P
PayeDoc
Hello All
Is it possible to make a form close as soon as the user clicks elsewhere on
the screen? The form in question is a trivial popup form that is best shown
in datasheet view, so I can't add a button. I know the user could close it
with the 'X' in the top-right corner, but for other reasons it would be much
better if I could force it to close as soon as they click elsewhere. I have
tried adding the following OnLostFocus event to the form, but nothing
happened!
DoCmd.Close acForm, "[frm contacts]", acSaveYes
Second question (or does this need to be in a separate post?): when I open
[frm contacts] via a button on another form, I can't then go into [frm
contacts]'s design view: doing right-click on it just brings up options to
Move, Size, Minimise, Maximise and Close. If I open [frm contacts] from the
main database window right-click does bring up the expected options (Design
view, etc.). What's going on?
Hope someone can help.
Thanks
Les
Is it possible to make a form close as soon as the user clicks elsewhere on
the screen? The form in question is a trivial popup form that is best shown
in datasheet view, so I can't add a button. I know the user could close it
with the 'X' in the top-right corner, but for other reasons it would be much
better if I could force it to close as soon as they click elsewhere. I have
tried adding the following OnLostFocus event to the form, but nothing
happened!
DoCmd.Close acForm, "[frm contacts]", acSaveYes
Second question (or does this need to be in a separate post?): when I open
[frm contacts] via a button on another form, I can't then go into [frm
contacts]'s design view: doing right-click on it just brings up options to
Move, Size, Minimise, Maximise and Close. If I open [frm contacts] from the
main database window right-click does bring up the expected options (Design
view, etc.). What's going on?
Hope someone can help.
Thanks
Les