akins4lyfe
Programmer
Hello all,
I have an application running on Access 2003 version, installed on a shared network folder. The database is accessible to more than 15 employees at a time. We have installed the full version of Access 2003 on all workstations. Therefore, i don't believe it's a reference or run-time application problem.
Clicking a command button, containing the code below within my program always triggers the following error. "Execution of this application has stopped due to a run-time error, Access will now terminate". access then shuts down completely on that user's machine.
Here's a sample code:
Private Sub cmdGenerateNote_Click()
On Error GoTo err_handler
If IsNull(Me.txtCompanyName) Then
MsgBox "Company Name Required", vbExclamation, "Missing Field"
ElseIf IsNull(Me.txtSingnedby) Then
MsgBox "Signatory to the notice required", vbExclamation, "Required"
Else
Call SubmitNote
Call Cleanout
Call DoubleNote
End If
endit:
Exit Sub
err_handler:
MsgBox _
"An unexpected error has been detected" & Chr(13) & _
"Description is: " & Err.Number & " , " & Err.Description & Chr(13) & _
"Module is: commandbutton_click" & Chr(13) & _
"Please note the above details before contacting your administrator"
Resume endit
End Sub
Also, this problem always occur to an employee on different machines, at different locations within the department. I have repair and compact the database, without luck. I have also import all objects into a new database, that did not work either. I deleted the whole program and designed a new one, the error just resurfaced again this afternoon.
I have no clue what I'm doing wrong.
Any suggestions, or assistance pls.
Thanks
I have an application running on Access 2003 version, installed on a shared network folder. The database is accessible to more than 15 employees at a time. We have installed the full version of Access 2003 on all workstations. Therefore, i don't believe it's a reference or run-time application problem.
Clicking a command button, containing the code below within my program always triggers the following error. "Execution of this application has stopped due to a run-time error, Access will now terminate". access then shuts down completely on that user's machine.
Here's a sample code:
Private Sub cmdGenerateNote_Click()
On Error GoTo err_handler
If IsNull(Me.txtCompanyName) Then
MsgBox "Company Name Required", vbExclamation, "Missing Field"
ElseIf IsNull(Me.txtSingnedby) Then
MsgBox "Signatory to the notice required", vbExclamation, "Required"
Else
Call SubmitNote
Call Cleanout
Call DoubleNote
End If
endit:
Exit Sub
err_handler:
MsgBox _
"An unexpected error has been detected" & Chr(13) & _
"Description is: " & Err.Number & " , " & Err.Description & Chr(13) & _
"Module is: commandbutton_click" & Chr(13) & _
"Please note the above details before contacting your administrator"
Resume endit
End Sub
Also, this problem always occur to an employee on different machines, at different locations within the department. I have repair and compact the database, without luck. I have also import all objects into a new database, that did not work either. I deleted the whole program and designed a new one, the error just resurfaced again this afternoon.
I have no clue what I'm doing wrong.
Any suggestions, or assistance pls.
Thanks