I have an activeX script in a DTS that runs a query in Access 2000. I am having a problem cause everytime I run that script I have to put in the password manually. Is there a way for me to include this in my script?
Function main()
Dim objDB
Set objDB = CreateObject("Access.Application"
objDB.OpenCurrentDatabase("\\MRH1\Vol1\Home\DMS_IT\SkillsAssesment\SkillsAssesment.mdb"
objDB.DoCmd.Openquery "qryMakeTableforExport"
objDB.CloseCurrentDatabase
objDB.Quit
main = DTSTaskExecResult_Success
End Function
Function main()
Dim objDB
Set objDB = CreateObject("Access.Application"
objDB.OpenCurrentDatabase("\\MRH1\Vol1\Home\DMS_IT\SkillsAssesment\SkillsAssesment.mdb"
objDB.DoCmd.Openquery "qryMakeTableforExport"
objDB.CloseCurrentDatabase
objDB.Quit
main = DTSTaskExecResult_Success
End Function