VB and Access

  • Thread starter Thread starter Chris Huddle
  • Start date Start date
C

Chris Huddle

Does anyone know how to, in VB 6.0, programatically set a password for an
Access Database, preferably in ADO? Thanks! - Chris
 
Check
http://msdn.microsoft.com/library/en-us/dnacc2k2/html/odc_acsecurity.asp

However, be aware of what it says in section 45 of the Access Security FAQ
( http://support.microsoft.com/support/access/content/secfaq.asp )

"Although ADOX (ADO Extensions for Data Definition and Security) is supposed
to have functional parity with DAO, it falls far short when it comes to
security. Many features simply don't work, such as assigning permissions to
Access objects (forms, and reports) and creating new users. Stick with DAO
when you need to programmatically manage security."

Use the NewPassword method of the User object in DAO.
 

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

Back
Top