S
Sergey Poberezovskiy
Hi,
I am using Access 2003.
When I open another instance of Access via Automation, it
will ALWAYS become visible after executing the
OpenCurrentDatabase method.
Is there any way not to show another instance as it was
possible back in 2000 version (I have not checked XP).
The code:
Dim oAccess As Access.Application
Set oAccess = New Access.Application
With oAccess
' As the other database contains VBA code skip the
security prompt
.AutomationSecurity = msoAutomationSecurityLow
.OpenCurrentDatabase "c:\dev\bbb.mdb"
Debug.Print .Visible ' will print True
' some other code - just data processing (visual
interface is not used)
.CloseCurrentDatabase
.Quit
End With
The question again:
How to stop showing the automation instance of Access?
Any help is much appreciated..
I am using Access 2003.
When I open another instance of Access via Automation, it
will ALWAYS become visible after executing the
OpenCurrentDatabase method.
Is there any way not to show another instance as it was
possible back in 2000 version (I have not checked XP).
The code:
Dim oAccess As Access.Application
Set oAccess = New Access.Application
With oAccess
' As the other database contains VBA code skip the
security prompt
.AutomationSecurity = msoAutomationSecurityLow
.OpenCurrentDatabase "c:\dev\bbb.mdb"
Debug.Print .Visible ' will print True
' some other code - just data processing (visual
interface is not used)
.CloseCurrentDatabase
.Quit
End With
The question again:
How to stop showing the automation instance of Access?
Any help is much appreciated..