Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection to a password protected Access DB

Status
Not open for further replies.

diarratech

Technical User
Jul 7, 2000
41
FR
What is the proper syntax to access a protected db in access?
The folling code gives me a page not found as soon as I add
:Database Password= password
Here's my code in global.asa

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
Application(&quot;connection&quot;) = &quot;Provider=Microsoft.Jet.OLEDB.4.0:Database Password= password; Data Source=&quot; & Server.Mappath(&quot;data.mdb&quot;) & &quot;;&quot;
End Sub
</SCRIPT>
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top