Captain Frog
New member
- Local time
- Today, 18:24
- Joined
- Dec 14, 2023
- Messages
- 9
Hi!
I have a DB where I decided to convert some macro to VBA (delete, print, etc)
Those macro behaved OK before, but now after conversion I get an error message if try to cancel the action.
Runtime error 2501. The RunCommand was canceld.
When I use the macro button everything is fine but the VBA version of the same button fires this message.
I tried to catch the error message with:
cmdDeleteRecord_Click_Err:
If Err.Number = 2501 Then
Resume Next
But I still get the Error message
Any explanation
I have a DB where I decided to convert some macro to VBA (delete, print, etc)
Those macro behaved OK before, but now after conversion I get an error message if try to cancel the action.
Runtime error 2501. The RunCommand was canceld.
When I use the macro button everything is fine but the VBA version of the same button fires this message.
I tried to catch the error message with:
cmdDeleteRecord_Click_Err:
If Err.Number = 2501 Then
Resume Next
But I still get the Error message
Any explanation