i have a code that bypasses a microsoft error but now it shows a message box with the error number in it. is there any way to hide this box? my code is#
MsgBox DataErr 'Use this to detect which error number to block.
If DataErr = 2237 Then 'If gives some stupid error message number 2237
Response = acDataErrContinue 'Don't show it
Else 'If it is any other error
Response = acDataErrDisplay 'Show it
End If
i would be very grateful if someone could show me how to edit the code appropriately. thank you.
MsgBox DataErr 'Use this to detect which error number to block.
If DataErr = 2237 Then 'If gives some stupid error message number 2237
Response = acDataErrContinue 'Don't show it
Else 'If it is any other error
Response = acDataErrDisplay 'Show it
End If
i would be very grateful if someone could show me how to edit the code appropriately. thank you.