
Signature
Dave Hargis, Microsoft Access MVP
> If the database you are opening is not opened in exclusive mode, you should
> be able to open it. Are you having problems with it?
[quoted text clipped - 11 lines]
> > NB. The VBA code being executed exists in one database, and the form
> > in a different database.
It's not that I can't open it, but rather that it is already open.
This is what I want to do:
1. database1 - start database2 and open form1 (from vba in database1)
2. database1 - close all forms, but keep database1 open
3. database2 - after required actions, open database1 form1
4. database2 - close
I can perform steps 1,2 and 4 but I do not know how to open a form in
database1 (when the database is already open) from vba in database2.
Klatuu - 26 Oct 2007 15:15 GMT
I have never done anything quite like that, so I am not sure how it would be
done.

Signature
Dave Hargis, Microsoft Access MVP
> > If the database you are opening is not opened in exclusive mode, you should
> > be able to open it. Are you having problems with it?
[quoted text clipped - 22 lines]
> I can perform steps 1,2 and 4 but I do not know how to open a form in
> database1 (when the database is already open) from vba in database2.
billelev - 26 Oct 2007 15:27 GMT
It seems that the GetObject() function should allow you to reference
an existing instance of a database. However, when I have tried it it
opens a new instance or generates an error. It should be possible
once I figure out how to use GetObject().