Results 1 to 3 of 3
  1. #1
    kstyles is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    24

    Macros

    I have a macro set to close a particular loan. It opens a query then based on a select parameter query where the end user inputs a specific loan number, it will update the status to closed. However, if you click cancel then the macro brings up the "action failed" message. My question is what clears this message - so that the user can change their mind and they won't have to see this.



    I've tried clear macro error, on error - set arguments to fail....

    Not really clear on how to make this box stop coming up.

  2. #2
    kstyles is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    24
    The "enter parameter value" box pops up and you have the option to enter a number or if you click cancel it will not update... however when you click cancel an "action failed" box pops up...

    It says error number 2950... and then has a button that says "stop all macros." This is okay for me - no big deal, but I don't want the end user to see this. Is there a way that I can have this not pop up when the canceled button is clicked?

  3. #3
    kstyles is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    24
    I figured this one out on my own...

    Set the actions in the buttons on click property to run a macro

    Actions run in this order
    OnError - argument - next
    msg box
    open query
    clear macro error

    Now only my own message boxes pop up...

    Thought maybe someone else could use this info.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Macros??
    By Rosier75 in forum Programming
    Replies: 3
    Last Post: 02-01-2011, 01:55 PM
  2. Macros
    By Capri Pruitt in forum Access
    Replies: 1
    Last Post: 09-13-2010, 10:36 PM
  3. vba vs macros
    By RedGoneWILD in forum Access
    Replies: 4
    Last Post: 08-06-2010, 12:48 AM
  4. VBA or Macros
    By mastromb in forum Forms
    Replies: 6
    Last Post: 01-03-2010, 04:46 PM
  5. Macros
    By kfhai in forum Access
    Replies: 0
    Last Post: 04-17-2009, 08:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums