Sorry here it is...
Function main()
Dim objDB
Set objDB = CreateObject("Access.Application"
objDB.OpenCurrentDatabase("C:\Documents and Settings\wmanzie\Desktop\skillsassesment.mdb"
objDB.DoCmd.Openquery "qryUpdateUnmatched"
objDB.CloseCurrentDatabase
objDB.Quit
main = DTSTaskExecResult_Success
End Function
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
In fact I think
expression.OpenCurrentDatabase(filepath, Exclusive, bstrPassword)
So you can just put the password in the OpenCurrentDatabase.
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.