Hi I'm launching an Access ADE, using Tony Toews auto FE program. The AutoFE programs will, if newer version available, copy the latest version of the ADE from the server, then launch it. My code looks like:
Dim stAutoFE As String = "V:\Apps\autofe\startmdb.exe /cmd /inifile: " & """" & "V:\Apps\AutoFE\SSP.ini" & """"
Shell(stAutoFE, AppWinStyle.Hide, True)
System.Threading.Thread.Sleep(1000) ' Time delay
Dim oAccess As Access.Application
oAccess = GetObject(SSP_Path) ' The ADE file location
I had to put the Sleep delay in, otherwise the GetObject would open the ADE a second time. But I don't know how long the copy from the server will take, so I need to remove that Sleep line and check that the ADE has opened. How can I do this? Thanks Diarmuid