![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Actually when anyone goes to execute the DTS package should they have a second thought and want to cancel the package. They hit cancel button to get out of package. I dont want it to popup an error. Is there a property for the cancel button that can be referenced? "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote Hello, Matt! You should be able to set both conditions of the IF to return a success. You, I presume want the package to exit stage left if there is no value in there. For this you will need workflow. Multiple Paths in Workflow http://www.sqldts.com/default.aspx?6,103,218,7,1 -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org : Option Explicit : Function Main() : Dim pkg : 'Dim sGrpDesc : Dim sInput : 'Set Package reference : set pkg = DTSGlobalVariables.Parent : Main = DTSTaskExecResult_Failure : 'sGrpDesc = "Get Files" : sInput = InputBox("Type ProcDate as follows", "Get Files", : "7/7/2003") : if sInput <> "" then : DTSGlobalVariables("gv_ProcDate").Value = sInput : Main = DTSTaskExecResult_Success : end if : End Function --- |
![]() |
| Thread Tools | |
| Display Modes | |
| |