bustercoder
Programmer
- Mar 13, 2007
- 96
Hello,
In my DTS Package, I have this Visual Basic ActiveX Script, I use for testing to make sure the FTP operation was successful. I'd like to keep it inthe DTS package for future testing, but don't want the msgbox to pop up when running as a scheduled task in production. Is there a way to suppress the msgbox or close it after it opens?
Function Main()
' transmission report
dim message
dim rc
if DTSGlobalVariables("TransferredFileCount") = 1 then
message = "Successfully transferred " & DTSGlobalVariables("TransferredFileCount") & " file."
rc = DTSTaskExecResult_Success
else
message = "Error! transferred " & DTSGlobalVariables("TransferredFileCount") & " files."
rc = DTSTaskExecResult_Failure
end if
msgbox message
Main = rc
End Function
Thanks,
Bruce
In my DTS Package, I have this Visual Basic ActiveX Script, I use for testing to make sure the FTP operation was successful. I'd like to keep it inthe DTS package for future testing, but don't want the msgbox to pop up when running as a scheduled task in production. Is there a way to suppress the msgbox or close it after it opens?
Function Main()
' transmission report
dim message
dim rc
if DTSGlobalVariables("TransferredFileCount") = 1 then
message = "Successfully transferred " & DTSGlobalVariables("TransferredFileCount") & " file."
rc = DTSTaskExecResult_Success
else
message = "Error! transferred " & DTSGlobalVariables("TransferredFileCount") & " files."
rc = DTSTaskExecResult_Failure
end if
msgbox message
Main = rc
End Function
Thanks,
Bruce