Lightlancer
Programmer
im my other post i have problems with Runtime access and alot of VBA code,
my database is working correctly in a full version, but not in a runtime version.
after alot of research i found the following:
on the onopen event:
it still give an error message:
"Execution of this application has stopped due to a run-time error."
When reducing it to this: (removing my own code)
It still gives the error message, and there is NO code,
but then when i remove this:
so there is no VBA code, the error is GONE.....
well can anyone explane to me how this can be?????
The one who has the answer is a Hero!
my database is working correctly in a full version, but not in a runtime version.
after alot of research i found the following:
on the onopen event:
Code:
Private Sub Form_Open(Cancel As Integer)
' Niet toegestaan te gebruiken als niet aangemeld
If IsNothing(glngDezeWerknemerID) Then
MsgBox "U moet aangemeld zijn om dit schakelbord te kunnen gebruiken.", vbCritical, gstrAppTitel
Cancel = True
DoCmd.OpenForm "frmAanmelden", , , , , acDialog
End If
MsgBox "Welkom " & gstrDezeWerknemer & ", Er zijn op dit moment " & HaalAantalStoringen() & " Openstaande storingen!", vbInformation, "Welkom " & gstrDezeWerknemer & "!"
End Sub
"Execution of this application has stopped due to a run-time error."
When reducing it to this: (removing my own code)
Code:
Private Sub Form_Open(Cancel As Integer)
End Sub
It still gives the error message, and there is NO code,
but then when i remove this:
Code:
Private Sub Form_Open(Cancel As Integer)
End Sub
well can anyone explane to me how this can be?????
The one who has the answer is a Hero!