PDA

Click to See Complete Forum and Search --> : access with password protection


nutstretch
Jul 31st, 2000, 01:29 PM
Can I put a password onto a database and still be able to call it through VB6

Heres hoping

nuts

Dr_Evil
Jul 31st, 2000, 02:10 PM
If you are using ADO this allows you to open a password protected database.

Dim cn as ADODB.Connection
Set cn = New ADODB.Connectioncn.Provider = "Microsoft.Jet.OLEDB.3.51"

cn.ConnectionString = "Data Source=D:\db1.mdb;Jet OLEDB :database password=your_password"
cn.CursorLocation = adUseClient
cn.Open

nutstretch
Jul 31st, 2000, 02:14 PM
thanks i'll try that
nuts