![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a DTS package where I declare a date (variable) using Active X. I then call a table to be written to Excel. I want to pass the variable to Excel (Connection Properties) filname for output (dynamic file name based on date). I don't know how to escape this variable. Any help would be greatly appreciated? Thanks... |
#3
| |||
| |||
|
|
You could try creating the complete excel file name as another Global Variable at the same time, then use Dynamic Properties to set the name of the Connection Property. If you are in script look up BOL and using GlobalVariables eg: 'Declare the package and global variable objects. Dim objPackage As DTS.Package2 Dim objGlobal As DTS.GlobalVariable . . . 'Define the global variable. Set objGlobal = objPackage.GlobalVariables.New("ALuckyName") objGlobal.Value = "SevenSevenSeven" objPackage.GlobalVariables.Add objGlobal "Mike Anderson" <manderson (AT) nationalcarenetwork (DOT) com> wrote in message news:26d201c49f50$2a0ad6d0$a501280a (AT) phx (DOT) gbl... I have a DTS package where I declare a date (variable) using Active X. I then call a table to be written to Excel. I want to pass the variable to Excel (Connection Properties) filname for output (dynamic file name based on date). I don't know how to escape this variable. Any help would be greatly appreciated? Thanks... Same principal as Access shown here, to do this in script- |
![]() |
| Thread Tools | |
| Display Modes | |
| |