Using ADO: ACC2000: How to Change the Database Password Through ADO http://support.microsoft.com/default.aspx?scid=KB;EN-US;304915 Q191754: HOWTO: Open a Secured Access Database in ADO Through OLE DB http://support.microsoft.com/support/kb/Articles/q191/7/54.asp
ACC2000: How to Change the Database Password Through ADO
http://support.microsoft.com/default.aspx?scid=KB;EN-US;304915
Q191754: HOWTO: Open a Secured Access Database in ADO Through OLE DB
http://support.microsoft.com/support/kb/Articles/q191/7/54.asp
Jet OLEDB:Database Password=password
这里password是你的密码。如:
Conn1.Open "Provider=Microsoft.JET.OLEDB.3.51;" & _
"Data Source=G:\ComponentSource\DBFiles\CSMain\CSMain.mdb;" &
"Jet OLEDB:Database Password=outlook"
对于ADO控件,你应该把这个字符串添加在ConnectionString属性后面。