Creating a new instance of Access without a window

R

rwetmore

I've read and re-read the docs and it doesn't seem to make sense. According
to MSDN, if you create a new instance of Access for automation (via AccApp =
CreateObject("Access.Application") or AccApp = New Access.Application) its
main window is not supposed to be visible. Well, mine is. If I put the
following inline in the code: AccApp.visible = False, it doesn't hide the
window. But if I immediately break into the debugger and type it manually,
the window disappears.

I'm assuming that Access hasn't had a chance to fully load before I try to
reset its visible property. So I have two questions: why is my app showing
up, and/or how do I tell if it's fully loaded and settled down enough to hide?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top