Group:  Microsoft Access ยป microsoft.public.access.modulesdaovba.ado
Thread: closing an opened database from another database

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

closing an opened database from another database
GeorgeMar 25.09.2006 00:18:01
I have a FE apps that has a form with a button that opens a Reports database
to display a report based on parameters set in the FE apps.

I use OpenCurrentDatabase to open the Reports database and display the
report in Preview mode. The Reports database remains visible, alongside the
FE apps, until the user closes the Reports database. The problem is that the
Reports database can remain open if the user forgets to close it. Moreover,
the user can initiate multiple instances of the Reports database, whenever
they click the button.

Is there a way for me to close the Reports database whenever the user closes
the FE apps? Or perhaps a way to find out if the Reports database is open
and close it?

Thanks
George

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net