
Originally Posted by
Witis
That is definitely not the Application already active! msgbox you added, so you will need to step through your startup code to trace the error.
To step through your code:
1. Insert a stop point. Left click in the margin to the left of a line of code in your startup procedure. You will be able to see a red dot indicating a stop point is visible.
2. Then run your application. It will stop at the break point you just created.
3. Now step through your code a line at a time using the F8 button. Note you can use shift + F8 to skip over a call to a subroutine or a function.
Don't forget to remove the stop point when you have finished by left clicking the red dot you created in the margin.
Tks! But i have resolved with:
Code:
Private Sub Form_Load()
If App.PrevInstance Then
MsgBox "APPLICAZIONE *** " & App.Title & " *** GIA' IN ESECUZIONE!", vbInformation
End
End If
End Sub