Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 7th, 2006, 01:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
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

Reply With Quote
  #2 (permalink)  
Old January 7th, 2006, 02:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
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

Reply With Quote
  #3 (permalink)  
Old January 7th, 2006, 02:34 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
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?

Reply With Quote
  #4 (permalink)  
Old January 7th, 2006, 02:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
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...

Reply With Quote
  #5 (permalink)  
Old January 7th, 2006, 03:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:28 PM.


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