Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 January 7th, 2006, 01:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default Multiple workgroup information file dilemna

Hi again. Another security issue.

I've created two workgroup information files for two different applications, one for each.

I open app A, and join workgroup A. Alls good. Then I open app B, and it defaults to workgroup A. So I use the workgroup administrator and have app B join workgroup B. Alls good. But then when I open app A again, it defaults to workgroup B.

It appears that every time I open Access, its default workgroup is set to the last workgroup joined by the previous instance of Access.

How can I have two apps join two seperate workgroups and persist those settings???

Bob

 
Old January 7th, 2006, 02:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Hmm....

Its looking like you can only use one system database (workgroup information file) per Windows user account??? I can use two .mdw files if I log in under two seperate Windows accounts. It seems that any time I change the workgroup information file in any instance of Access, the following registry key gets set to the new workgroup information file:

HKEY_CURRENT_USER
Software
Microsoft
Office
10.0
Access
Jet
4.0
Engines


Name: SystemDB
Data: C:\Secured Databases\WorkgroupInformationFileA.mdw

(The default key data is Application Data\Microsoft\Access\System.mdw)

Once this key is set, all other Access dbs opened under the current Windows user account seem to use that workgroup information file until its changed manually.

Just wondering if there is a way to use multiple workgroup information files for different apps under the same Windows user account???

Bob

 
Old January 7th, 2006, 02:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

I gotta' use a shortcut to override the system db setting, don't I?

 
Old January 7th, 2006, 02:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\Secured Databases\SecuredDatabaseA.mdb"
/WRKGRP
"C:\Secured Databases\WorkgroupInformationFileA.mdw"

That'll get it...

 
Old January 7th, 2006, 03:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

this'll get it from code...
Code:
   'Open secured Jet connection
   With cnn
      .Provider = "Microsoft.Jet.OLEDB.4.0"
      .Properties("Data Source") = "C:\Secured Databases\SecuredDatabaseA.mdb"
      .Properties("Jet OLEDB:System Database") = _
                                    "C:\Secured Databases\WorkgroupInformationFileA.mdw"
      .Properties("Mode") = adModeShareDenyNone
      .Properties("User ID") = "John Doe"
      .Properties("Password") = "John"
   End With





Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing the group from a Workgroup file lryckman Access 7 January 12th, 2008 06:43 AM
Access Workgroup System file iii_carlos BOOK: Professional Crystal Reports for VS.NET 0 February 12th, 2007 01:34 AM
Autoupdate multiple information Wall st Guru Excel VBA 2 February 23rd, 2006 07:40 AM
Copy a file from one workgroup to another domain somnath.kartic VS.NET 2002/2003 0 January 18th, 2006 04:35 AM
Workgroup Info File Help tucker Access 0 September 24th, 2004 08:04 AM





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