![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
Hello, I am on SQL Server 2000/sp3a. Not , a very elegant way to do, but, I have to develop a mechanism to get input data from user and then generate an export file based on that criteria |
|
Intended variable declarations: gV_Pub number "0" gV_IssDate Date "2003/10/01" gv_Path String "C:\" Now, when I have created an ActiveX Task for taking user input and the intention was to feed those values to the global variables. However, when |
|
gV_Pub String "1" gV_IssDate String "1" gv_Path String "1" Definitely, these values are wrong. The query generates correct export file from values defined earlier. I think there is some problem with global |
|
Just FYI, ActiveX task executes first and then the export process (transform data task) runs. Code in ActiveX task: ============== Dim pubNumber, issDate, path 'Entering information in Dialog box pubNumber = InputBox("Please Enter the Publication Number from listing below:", "Enter the Publication Number", "1") DTSGlobalVariables("gV_Pub").Value = pubNumber issDate = InputBox("Enter the Publication Date in yyyy/mm/dd format", "Publication Issue Date", "2003/10/01") DTSGlobalVariables("gV_IssueDate").Value = pubNumber path = InputBox("Enter the directory information where export file will be saved", "Path", "C:\") DTSGlobalVariables("gV_Path").Value = pubNumber Please help. Thanks, MZeeshan |
#3
| ||||
| ||||
|
|
Hello, I am on SQL Server 2000/sp3a. Not , a very elegant way to do, but, I have to develop a mechanism to get input data from user and then generate an export file based on that criteria |
|
Intended variable declarations: gV_Pub number "0" gV_IssDate Date "2003/10/01" gv_Path String "C:\" Now, when I have created an ActiveX Task for taking user input and the intention was to feed those values to the global variables. However, when |
|
gV_Pub String "1" gV_IssDate String "1" gv_Path String "1" Definitely, these values are wrong. The query generates correct export file from values defined earlier. I think there is some problem with global |
|
Just FYI, ActiveX task executes first and then the export process (transform data task) runs. Code in ActiveX task: ============== Dim pubNumber, issDate, path 'Entering information in Dialog box pubNumber = InputBox("Please Enter the Publication Number from listing below:", "Enter the Publication Number", "1") DTSGlobalVariables("gV_Pub").Value = pubNumber issDate = InputBox("Enter the Publication Date in yyyy/mm/dd format", "Publication Issue Date", "2003/10/01") DTSGlobalVariables("gV_IssueDate").Value = pubNumber path = InputBox("Enter the directory information where export file will be saved", "Path", "C:\") DTSGlobalVariables("gV_Path").Value = pubNumber Please help. Thanks, MZeeshan |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |