Microsoft Knowledge Base Email Alertz

KBAlertz.com: This article shows you how to share a secured Microsoft Jet database on a network. For a group of users to gain access to a secured database, the users must join the same workgroup information file. In Access 2.0, the workgroup information

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 232390 - Last Review: January 24, 2007 - Revision: 2.2

ACC: How to Share a Secured Database on a Network

This article was previously published under Q232390
Moderate: Requires basic macro, coding, and interoperability skills.

SUMMARY

This article shows you how to share a secured Microsoft Jet database on a network. For a group of users to gain access to a secured database, the users must join the same workgroup information file. In Access 2.0, the workgroup information file has the extension .mda. In Access 95 and 97, the workgroup information file has the extension .mdw.

MORE INFORMATION

To Share a Database in Access 95 or Access 97

NOTE: This example assumes that the workgroup information file is named Secure.mdw.
  1. Share the database in a folder that has change permissions for the users (read, write, create).
  2. Share the workgroup information file, Secure.mdw, to a folder that also has change permissions for all the users. This folder may be the same as the database folder if the workgroup information file has a file name that is different from the database file(s).
  3. Create a shortcut that includes the /wrkgrp command-line option, as in the following example
    "c:\Program Files\Microsoft Office\Office\Msaccess.exe" "\\srvr\fldr\MyDB.mdb" /wrkgrp "\\srvr\fldr2\Secure.mdw"
    where \\srvr\fldr\MyDB.mdb is the universal naming convention (UNC) path to the database that you are sharing, and \\srvr\fldr2\Secure.mdw is the workgroup information file that you are sharing.
WARNING: To guard against the file becoming corrupted, share only a copy of your Secure.mdw file on the network. Back up a copy for safekeeping. You may want to do the same for the database file(s).

To Share a Database in Access 2.0

NOTE: This example assumes that the workgroup information file is named Secure.mda.
  1. Copy your database and your Secure.mda file to a network shared folder that has change permissions for the users (read, write, create).
  2. Copy the C:\Windows\System\Msacc20.ini file (or the WinNT\System32\Msacc20.ini file for Windows NT) to a new file name, for example, MyDB.ini.
  3. Open the new .ini file in any text editor, such as Notepad, and change the line that begins with SystemDB= to read as follows
    SystemDB = \\srvr\fldr\Secure.mda
    where \\srvr\fldr\Secure.mda is the UNC path to your custom workgroup information file.
  4. Copy the new .ini file to the same server location as the database.
  5. Create a program item or shortcut that includes the /ini command-line option, as in the following example
    "c:\Access\msaccess.exe" "\\srvr\fldr\MyDB.mdb" /ini "\\srvr\fldr\MyDB.ini"
    where \\srvr\fldr\MyDB.mdb is the universal naming convention (UNC) path to your shared database, and \\srvr\fldr\MyDB.ini is the UNC path to your custom .ini file.
Special Note for Windows versions: For Access 2.0 on Windows 95, Windows 98, or Windows NT 4.0, you can e-mail the shortcut. For Access 2.0 on Windows NT 3.51 or Windows 3.1x, have each user create the same program item in the user's Program Manager.

REFERENCES

For Access 95 and 97:

For more information about command line options, click Contents and Index on the Help menu, click the Index tab in Access Help, type the following text
command line
and then double-click the selected text to go to the "Start Microsoft Access with command-line options" topic. If you are unable to find the information you need, ask the Office Assistant.

For more information about securing your application, see chapter 14 of Building Applications with Microsoft Access 97 or Building Applications with Microsoft Access for Windows 95.

For more information about Microsoft Access 95 security, please see the following article in the Microsoft Knowledge Base:
148555  (http://kbalertz.com/Feedback.aspx?kbNumber=148555/EN-US/ ) ACC95: MS Access 95 Security White Paper Available in Download Center
In Access 2.0:

For more information about customizing the .ini file, see page 10 of the Advanced Topics book for Microsoft Access Developer's Toolkit (version 2.0).

For additional information about Access 2.0 security, please see the following article in the Microsoft Knowledge Base:
122036  (http://kbalertz.com/Feedback.aspx?kbNumber=122036/EN-US/ ) ACC2: Security Wizard and White Paper for Access 2.0 Available in Download Center
For additional information about the Access 2.0 .ini file, please see the following article in the Microsoft Knowledge Base:
122246  (http://kbalertz.com/Feedback.aspx?kbNumber=122246/EN-US/ ) ACC2: Sample MSACC20.INI File for MS Access Version 2.0

APPLIES TO
  • Microsoft Access 2.0 Standard Edition
  • Microsoft Access 95 Standard Edition
  • Microsoft Access 97 Standard Edition
Keywords: 
kbhowto KB232390
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Anonymous User Report As Irrelevant  
Written: 9/6/2007 2:30 AM
MSACC20.INI

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please