I am writing a VB application based around an Access database, i would like to be able to password protect the database so that it cannot be tampered with, other than by somebody trained upon the background workings of it. Whenever i try to run the application it keeps coming up with "Invalid Password Entry" whenever a database call is required and crashes the application.<br>
<br>
My coding to access the databases is as follows,<br>
<br>
dim ws as workspace<br>
dim db as database<br>
dim rs as recordset<br>
<br>
set ws = workspaces(0)<br>
set db = ws.opendatabase( << database filename >> ) Rem This is where it crashes.<br>
set rs = db.openrecordset( << table name >> )<br>
<br>
I would like to keep this coding, but if i have to rewrite then i will. How do i amend this to include the password for the database, in order that i can successfully open it.
<br>
My coding to access the databases is as follows,<br>
<br>
dim ws as workspace<br>
dim db as database<br>
dim rs as recordset<br>
<br>
set ws = workspaces(0)<br>
set db = ws.opendatabase( << database filename >> ) Rem This is where it crashes.<br>
set rs = db.openrecordset( << table name >> )<br>
<br>
I would like to keep this coding, but if i have to rewrite then i will. How do i amend this to include the password for the database, in order that i can successfully open it.