Jun 19, 2007 #1 mrkshpntf MIS Apr 19, 2007 92 US Is there a way to NOT get a 'action was canceled' prompt when cancel button is clicked on a parameter form? Thanks, mrkshpntf.
Is there a way to NOT get a 'action was canceled' prompt when cancel button is clicked on a parameter form? Thanks, mrkshpntf.
Jun 19, 2007 1 #2 Remou Technical User Sep 30, 2002 13,030 BE Do you mean error 2001? it is a trappable error. You can use an error trap. Upvote 0 Downvote
Jun 19, 2007 Thread starter #3 mrkshpntf MIS Apr 19, 2007 92 US Remou, Let me explain: I have a command button on a form that generates a report when clicked. When the command button is clicked, a parameter form appears where the user has to enter the date for which the data is required. I want the users to exit (if they choose to and click on 'cancel') without getting confused by the 'OpenReport action was canceled' prompt. I don't see 'error 2001' mentioned on the prompt. I hope this explanation helps. Thanks, mrkshpntf. Upvote 0 Downvote
Remou, Let me explain: I have a command button on a form that generates a report when clicked. When the command button is clicked, a parameter form appears where the user has to enter the date for which the data is required. I want the users to exit (if they choose to and click on 'cancel') without getting confused by the 'OpenReport action was canceled' prompt. I don't see 'error 2001' mentioned on the prompt. I hope this explanation helps. Thanks, mrkshpntf.
Jun 19, 2007 #4 Remou Technical User Sep 30, 2002 13,030 BE Ok, that is a different error number, 2501 as far as I recall. Upvote 0 Downvote
Jun 19, 2007 Thread starter #5 mrkshpntf MIS Apr 19, 2007 92 US Remou, I got it. I removed - MsgBox Err.Description - from the code. The message box doesn't appear anymore. Thanks, mrkshpntf. Upvote 0 Downvote
Remou, I got it. I removed - MsgBox Err.Description - from the code. The message box doesn't appear anymore. Thanks, mrkshpntf.