Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2003, 05:17 AM
Authorized User
 
Join Date: Nov 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB/VBA and Encrypted Access2002 Database


Hi,

I'm trying to access an encrypted Access2002 database with VB/VBA+ADO.
All users/passwords are stored in the corresponding .mdw file. How do I tell Access from within ADO (e.g. in the ConnectString) to use THAT .mdw file ? If I don't specify .mdw the file, I get an error.

It is similar to starting Access from the command line by using the /WRKGRP option, only it should be done from within VB/ADO.

Mike
 
Old November 11th, 2003, 07:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Found this at http://www.able-consulting.com/ADO_Conn.htm

If using a Workgroup (System Database)

oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
           "Data Source=c:\somepath\mydb.mdb;" & _
           "Jet OLEDB:System Database=MySystem.mdw", _
           "myUsername", "myPassword"

note the line "Jet OLEDB:System Database=MySystem.mdw", _

hth
Phil
 
Old November 11th, 2003, 08:02 AM
Authorized User
 
Join Date: Nov 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by pgtips
 Found this at http://www.able-consulting.com/ADO_Conn.htm

If using a Workgroup (System Database)

oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
         "Data Source=c:\somepath\mydb.mdb;" & _
         "Jet OLEDB:System Database=MySystem.mdw", _
         "myUsername", "myPassword"

note the line "Jet OLEDB:System Database=MySystem.mdw", _

hth
Phil
Thanks ! I tried it and it works. This ends 6 days of browsing, asking around and not getting too useful an info.

Great !







Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA, VB, VB.NET,...??? jumpjack Visual Basic 2005 Basics 2 September 24th, 2007 02:52 PM
Encrypted password harini19 Java Basics 0 February 15th, 2006 07:29 AM
InputMask in Access2002 mega Access 2 March 24th, 2004 07:36 AM
VB.Net/VB/Access97/Access2002 Comparison doveb VB.NET 4 October 10th, 2003 09:54 AM
VBA v. VB mdbriggs Access VBA 2 August 22nd, 2003 10:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.