Every time I run a macro of mine (which triggers a query) I get this error:
"Microsoft Access Can't Append All the Records in the Append Query"
It asks if I want to continue, and I click ok. Is there a way to keep this message box from popping up when this occurs? I've tried 'On Error Resume Next' and it didn't seem to work. The msg box still popped up and prompted me to press ok. Here is my code:
"Microsoft Access Can't Append All the Records in the Append Query"
It asks if I want to continue, and I click ok. Is there a way to keep this message box from popping up when this occurs? I've tried 'On Error Resume Next' and it didn't seem to work. The msg box still popped up and prompted me to press ok. Here is my code:
Code:
Private Sub Command17_Click()
On Error Resume Next
Dim stDocName As String
stDocName = "macBlake_macGenerateAndExportDailyWalkFiles"
DoCmd.RunMacro stDocName
stDocName = "macBlake_macClearAndUpdateFEOrderTableAndExport"
DoCmd.RunMacro stDocName
Exit_Command17_Click:
Exit Sub
End Sub