• I am missing something. It is throwing an exception when i added the msgbox.

    THe code has the following files included:

    Imports System

    Imports System.Data

    Imports System.Math

    Imports Microsoft.SqlServer.Dts.Runtime

    This is the error....

    at Microsoft.SqlServer.Dts.Runtime.Variables.get_Item(Object index)

    at ScriptTask_9d230469898049ae9e322c79be925a0d.ScriptMain.Main