I've figured out how to do this. My code parses fine however, when I execute the ActiveX task i get the following error
"invalid procedure call or argument"
Here's is part of my code where the error is ocurring and it has to do with the FileSystemObject:
Function Main()
dim myConn
dim myRecordset
dim pcpName
dim objFSO
dim ObjTextFile
Set objFSO = CreateObject ("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile ("c:\pendingClaimsMD", ForWriting)
' instantiate the ADO objects
set myConn = CreateObject("ADODB.Connection")
set myRecordset = CreateObject("ADODB.Recordset")
' set the connection properties to point to the claimsnet database,
myConn.Open = "Provider=SQLOLEDB.1;Data Source=(local);UID=;PWD=;Trusted_Connection=Yes;Initial Catalog=PCM_Claimsnet;"
mySQLCmdText = "Select * from ccm_pendingclaimsMD"
myRecordset.Open mySQLCmdText, myConn
etc, etc, etc..
end function