I have a form which users can launch from a couple of places. The on update and close events of the form run code that causes a requery of another form (actually a subform on form). The code is:
Forms!CompaniesForm!ContactLogSubform.Requery
However, CompaniesForm might not be open in certain circumstances. What could be the code to run to check if the form is open before trying to run the requery code? I also probably need help with the If-Then bits of code. If there isn't a way to do this I could probably put in code to ignore the error generated when the form isn't open. Tks.
Forms!CompaniesForm!ContactLogSubform.Requery
However, CompaniesForm might not be open in certain circumstances. What could be the code to run to check if the form is open before trying to run the requery code? I also probably need help with the If-Then bits of code. If there isn't a way to do this I could probably put in code to ignore the error generated when the form isn't open. Tks.