Hide Access running from excel spreadsheet

S

Souris

Dim MyDB As Object

Set MyDB = GetObject("c:\MyDB\MyDB.mdb")
MyDB.Application.Run "Myfunction", MyValue
Set MyDB = Nothing


I have above code to run a function in Access datadabse from Excel
spreadsheet which launch MS Access when run the code from Excel.

I use version 2003

Is it possible to hide Access from end user whicl run the function?

Your information is great appreciated,
 
D

Douglas J. Steele

Untested, but try

Dim MyDB As Object

Set MyDB = GetObject("c:\MyDB\MyDB.mdb")
MyDB.Application.Visible = False
MyDB.Application.Run "Myfunction", MyValue
Set MyDB = Nothing
 

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