How can I change admin password with DAO?

T

TNL

Hi
I want to use DAO to set password for standard "admin" user as following:

....
Set ws = DBEngine.CreateWorkspace("test", "admin", "")
ws.Users("admin").NewPassword "", "xxxxxxxx"

but I receive "Element in this collection not found"
in Debug modus, the users.count = 0

How can I do?
Thanhks
TNL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top