Hi Mike
thanks for replying. I'm still working on this but I have some more info now.
I run the sub that checks for updates in the App_Start Sub. It is in a separate module called modUpdate. If there are no updates, the App_Start sub will just show the login form for the app, frmLogin.Show
However, the program still errors if do not even use the AppClose call. For example, I understand that if no form is shown in App_Start the program will end anyway, so I have ditched the AppClose call and just let the program end by not showing the Login form if the user chooses to update - yet I still get the error as the program closes. (see below)
If modUpdate.CheckforUpdates(sServerIP,"algastrack.exe") = True Then
Shell(AppPath & "\Updater.exe","algastrack.exe" & " " & sServerIP)
else
frmLogin.Show
end if
Return
(sorry, can't get indenting to work in this post)
Everything works OK by the way, it's just that the error appears after the program has closed!