A
Adam Thwaites
Hi, I have the following code to close a form by clicking anywhere on it:
Private Sub Form_Click()
Forms![frm_Main].SetFocus
DoCmd.Close acForm, "frm_DueBack"
End Sub
I also tried this for detail click but it didn't work when I clicked on the
lables on the form. How can I get the above code to work for if you click on
a lable's aswell, without having individual code for each label?
Thanks
--
Adam Thwaites
Access Database Designer
adam.*spamless*[email protected]
Manchester, UK
(I have no access to other sites apart from microsoft.com so posting
external links is no use to me)
Private Sub Form_Click()
Forms![frm_Main].SetFocus
DoCmd.Close acForm, "frm_DueBack"
End Sub
I also tried this for detail click but it didn't work when I clicked on the
lables on the form. How can I get the above code to work for if you click on
a lable's aswell, without having individual code for each label?
Thanks
--
Adam Thwaites
Access Database Designer
adam.*spamless*[email protected]
Manchester, UK
(I have no access to other sites apart from microsoft.com so posting
external links is no use to me)