M
mls via AccessMonster.com
I have the following code to load into db when the button is clicked after
loading it show the successful completion message box. I have composite key
so if some one tries to upload again ot should fail with error message.
In my case it show the Err desciption but again it shows the successful
msgbox again. Can you dedug please?
Thanks
Private Sub cmd_load2010_new_Click()
Dim stDocName As String
On Error GoTo violation_err
stDocName = "Insert_RESULTS_into_2010_RRT"
DoCmd.OpenQuery stDocName, acNormal, acEdit
MsgBox "Upload completed Successfully"
Exit_ModuleName:
Exit Sub
violation_err:
MsgBox Err.Description
Resume Exit_ModuleName
End Sub
loading it show the successful completion message box. I have composite key
so if some one tries to upload again ot should fail with error message.
In my case it show the Err desciption but again it shows the successful
msgbox again. Can you dedug please?
Thanks
Private Sub cmd_load2010_new_Click()
Dim stDocName As String
On Error GoTo violation_err
stDocName = "Insert_RESULTS_into_2010_RRT"
DoCmd.OpenQuery stDocName, acNormal, acEdit
MsgBox "Upload completed Successfully"
Exit_ModuleName:
Exit Sub
violation_err:
MsgBox Err.Description
Resume Exit_ModuleName
End Sub