PRevent Form from Closing?

E

el zorro

I have a form that allows the user to select the name of a person from a list
box, then click on a button to open a second form with the data for that
person. There is some VBA code for the On Close event of the second form that
updates the list on the first form. (.adp front end, back end on SQL Server)

However, if the user for some strange, unexplicable reason closes the first
form before closing the second form, Access generates an error message
saying, basically, "where the heck is the first form?" when the second form
is closed.

Isn't there a way to prevent the first form from being closed when the
second form is still open?

THanks!
 
E

erica nelson

el zorro said:
I have a form that allows the user to select the name of a person from a
list
box, then click on a button to open a second form with the data for that
person. There is some VBA code for the On Close event of the second form
that
updates the list on the first form. (.adp front end, back end on SQL
Server)

However, if the user for some strange, unexplicable reason closes the
first
form before closing the second form, Access generates an error message
saying, basically, "where the heck is the first form?" when the second
form
is closed.

Isn't there a way to prevent the first form from being closed when the
second form is still open?

THanks!
um hi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top