Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / May 2007

Tip: Looking for answers? Try searching our database.

Macro Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick - 30 May 2007 08:10 GMT
I am working with delete macro in a subform. It works well in deleteing  the
information but if I decide not to follow through and hit cancel a window
show us stating action failed and in order to close window I have to hit the
halt button. What must i change in the macro for it to close with out taking
any action and not showing the halt window.
Private Sub Qtdel_Click()
On Error GoTo Err_Qtdel_Click

   Dim stDocName As String

   stDocName = "QtDelete"
   DoCmd.RunMacro stDocName

Exit_Qtdel_Click:
   Exit Sub

Err_Qtdel_Click:
       Resume Exit_Qtdel_Click
Steve Schapel - 31 May 2007 22:50 GMT
Nick,

As far as I know, this is not possible.

However, you could prompt the user in advance to confirm if they are
sure they want to run the delete.

Signature

Steve Schapel, Microsoft Access MVP

> I am working with delete macro in a subform. It works well in deleteing  the
> information but if I decide not to follow through and hit cancel a window
[quoted text clipped - 14 lines]
> Err_Qtdel_Click:
>         Resume Exit_Qtdel_Click
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.