Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Application 1

Status
Not open for further replies.

Jonathan123

Programmer
Jun 29, 2001
20
0
0
US
Hi, Anyone know how to make an access application created in VB truly invisible to the user so it does not even show in the taskbar?

Also, any ideas on how to kill the instance of the access application itself? Not just close the current database with obj.application.closecurrentdatabase but kill the actual application
Thanks,

 
Sure, you can create the Access application like this:

'Note: requires reference to Access X.0 object library

Dim MSAccess as Access.Application
Set MSAccess = CreateObject("Access.Application")

MSAccess.OpenCurrentDatabase "MyDBPath.mdb"

'As long as you don't include a MSAccess.Visible = True, the App won't show up in the taskbar (although it will appear in the Ctrl+Alt+Del list) When you're done, use Set MSAccess = Nothing to get rid of it.

Good luck!

-Mike
Difference between a madman and a genius:
A madman uses his genius destructively,
A genius uses his madness constructively.
 
Thanks Mike for your last point. Regarding the first, it shows up in the task bar as minimized.
Perhaps someone knows a work around
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top