Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX object run but, code doesn't execute ?

Status
Not open for further replies.

Recce

Programmer
Aug 28, 2002
425
0
0
ZA
Good day,

I have problem with an ActiveX object of mine.The object runs without any errors however, the below code doesn't execute in order to change the Global Variables.Can anyone spot anything wrong with my code or suggest any reasons why this may be. Thanks :)

'**********************************************************************
' Visual Basic ActiveX Script
'************************************************************************

Function Main()

Dim MyWeekDay

MyWeekDay = Weekday(Date)

If MyWeekDay = 2 Then

DTSGlobalVariables("Startdate").Value = CStr(Date-3)
DTSGlobalVariables("Enddate").Value = CStr(Date)

Else

DTSGlobalVariables("Startdate").Value = CStr(Date-1)
DTSGlobalVariables("Enddate").Value = CStr(Date)

End If

Main = DTSTaskExecResult_Success
End Function


[pipe] "We know nothing but, that what we know is not the truth..." - Me
 
Hi 100caratdiamond,

Thanks for the info but, I'm not sure what you mean or what I should be doing. Could you please give me some more detail.

[pipe] "We know nothing but, that what we know is not the truth..." - Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top