hyperlink to another database object

teel73

Registered User.
Local time
Today, 13:04
Joined
Jun 26, 2007
Messages
205
I have 2 databases (accdb). Both databases have a loading pop form. Also both databases include the following line of code when the loading form opens:
Code:
docmd.runcommand acCmdAppMinimize

This code works great when I open the databases individually. but my problem is that I have a label on the pop form in accdb 1 with its hyperlink address set to accdb 2 and the subaddress set to the macro name.

The hyperlink opens the database 2 just fine and it opens the loading form but it doesn't minimize the application window.

Is there something I should be doing with the target property?
 
I think you need be able to reference the 2nd database's application window, the code docmd.runcommand acCmdAppMinimize
I believe will always relate to the first database as that is the active application.
Try looking up hWndAccessApp and hWnd
I've never used this before, so can't really advise

David
 

Users who are viewing this thread

Back
Top Bottom