clientuser
Programmer
I need to write a small app that tells if MS Access in running on the same machine and if it is, to kill the process and shut it down..
any suggestions?
any suggestions?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim objApp As object
Dim lngErr as long
Do
On error resume next
set objApp = GetObject(, "Access.Application")
lngErr = Err.Number
On error goto 0
if lngerr <> 0 then exit do
On error Resume next
objApp.Quit
lngerr = Err.Number
On error goto 0
Set objApp = nothing
if lngErr <> 0 then exit do ' Avoid Endless loop
Loop