Many people may need access to an organization's database.
|
If a database is on a computer connected to a network, users can work with the database from their own computers.
|
Also, more than one user can access the database at the same time.
|
To share a database so that other users can access it, you need to place it in a shared folder.
|
To open a shared database, you select ^UOpen Database^u from the ^UFile^u menu.
|
And you click the database that you want to open.
|
If you don't want other users to be able to access the database at the same time as you, you check the ^UExclusive^u checkbox.
|
But to open the database in Shared mode, you leave the checkbox unchecked.
|
Next you click ^UOpen^u.
|
You can specify whether the database opens in Shared or Exclusive mode by default by choosing ^UTools - Options^u.
|
You then click the ^UAdvanced^u tab.
|
You can set the default open mode as either shared or exclusive.
|
Setting the default open mode does not affect users accessing the database from other computers.
Also, it does not prevent any user from opening the database in shared, exclusive, or read-only mode.
|
Then you click ^UOK^u.
@@
When several users are working on the same database at the same time, they may make changes that conflict with each other.
|
Access includes features that help you to prevent and manage conflicting changes.
|
To prevent conflicting changes being made to a table's design, Access doesn't allow you to open a table if another user has that table open in Design view.
|
Suppose another user has the Customers table open in Design view.
|
If you try to open the table in either Datasheet or Design view, Access tells you that the table is ^Rlocked^r.
|
Access doesn't allow you to modify a table in Design view if another user has the table open in Datasheet view.
|
Suppose another user has the Customers database open in Datasheet view.
|
If you try to open the table in Design view, Access tells you that you can only open the table in read-only mode.
|
Access also prevents you from modifying a table in Design view if another user has a query, form, or report based on the table open.
|
To help prevent conflicting changes being made to records, Access allows you to lock the records that you are editing.
|
Other users cannot change a record while it is locked.
|
Suppose you are working on the Products table and want to lock the records while you are editing them.
|
You select ^UTools - Options^u.
|
And you click the ^UAdvanced^u tab.
|
By default, Access specifies ^UNo Locks^u as the default record-locking strategy.
|
If you select ^UEdited Record^u, Access locks records while you are editing them.
|
If you select ^UAll Records^u, Access locks all the records in the datasheet you are working on while you have it open.
|
If you select either ^UEdited^u ^URecord^u or ^UAll Records^u while you are working on a form or report, Access also locks the underlying records.
|
Once you have selected a record-locking strategy, you click ^UOK^u.
@@
When you are editing a shared database, Access helps you to keep track of the status of records as you edit them.
|
Suppose you are editing your Products table.
|
When you click a record, the record selector usually displays an arrow.
|
But if the record has been locked by another user, the record selector displays a "locked" symbol, and you are prevented from changing the record.
|
When you are editing a record, the "editing" symbol is displayed.
|
As long as this symbol is displayed, other users cannot see the changes you have made, or edit the record if you have locked it.
|
If you and other people on your network use the No Locks strategy, editing conflicts between users can occur.
|
Suppose you are editing an unlocked record, but another user saves a conflicting change before you finish editing.
|
When you try to save your changes, Access tells you that a conflict has occurred and allows you to
ò save the record and overwrite the change made by
the other user
|
ò copy your changes to the Clipboard so that you can
paste them in later
|
ò ignore your changes and keep the changes made
by the other user
@@
When you are working with a shared database, other users could be changing data while you are viewing it.
|
To update all the records on a datasheet, you select ^URecords - Refresh^u.
|
As you can see, all the changes that have been made by other users are now displayed.
|
Sometimes you only want to share the tables in a database, and allow users to create their own forms, reports, and macros.
|
Access allows you to split a database into two files.
|
One file contains a ^Rback-end^r database that includes only the tables.
|
And the other contains a database that includes the queries, forms, reports, and macros, and is ^Rlinked^r to the back-end database.
|
If you share the back-end database, then users can use copies of the other database to create forms, reports, and macros on their own computers.
|
Sharing only the tables in a database also improves performance because less data is sent across the network.
|
To split a database using this feature, select ^UTools - Add-Ins - Database Splitter^u.
|
If the Database Splitter Wizard has not been installed, you need to run the Setup program and choose to add ^UAdvanced Wizards^u.
@@
Suppose you want to share the tables in your Sales database, but allow users to create their own forms and reports based on the data.
|
A Sales back-end database has been created.
|
The Sales database now contains tables that are linked to the Sales back-end database.
@@
When you replicate a database, you create copies of it - called ^Rreplicas^r.
|
You can distribute replicas so that different users can work on their own copies of the database.
|
You can also maintain a replica on your laptop computer so that you can work with the database even when you aren't connected to your network.
|
Replication can be used to reduce network traffic.
|
If users are given replicas, then they don't need to access a database over the network.
|
Replication can also be used to back up a database.
|
Replicating a database creates a ^Rreplica^r ^Rset^r.
|
A replica set consists of replicas and one ^RDesign^r ^RMaster^r.
|
A Design Master contains the same data as the other replicas in a set.
|
But it is the only replica in which you can change the structure of the database.
|
You ^Rsynchronize^r a replica to update it so that it contains the same data as another replica in the set.
|
You can synchronize replicas with the Design Master to distribute changes to the structure of the database.
@@
Suppose you want to replicate your Sales database.
|
You select ^UTools - Replication^u.
|
And then you choose ^UCreate Replica^u.
|
You click ^UYes^u to close the database.
|
Access asks you whether you want to create a backup of the database.
|
It's a good idea to create a backup because special tables, columns, and properties are added to a database when it is converted into a Design Master.
|
You click ^UYes^u to create a backup.
|
The Location of New Replica dialog box allows you to choose the folder into which you want to place the new replica.
|
In this example you don't need to select a new folder, so you just click ^UOK^u.
|
Access tells you that a Design Master and a replica have been created.
|
You now click ^UOK^u.
|
Access displays the new Design Master.
|
The circles beside the table icons indicate that the tables are replicated objects.
|
To open the replica, you click the ^UOpen Database^u button.
|
You click the file that contains the replica.
|
And then you click ^UOpen^u.
|
You can now work with the replica as if it were any other database - although you cannot change the database's structure.
|
You can create new objects - such as tables and forms - for the replica.
But these ^Rlocal^r ^Robjects^r cannot be synchronized with other replica set members.
|
Suppose you want to create another replica for the replica set.
|
You select ^UTools - Replication -^u ^UCreate Replica^u.
|
And you click ^UOK^u.
|
Access tells you that a new replica has been created.
|
A new Design Master was not created because the replica set already contains a Design Master.
|
You now click ^UYes^u to close and reopen the database.
@@
To work with a replica on your laptop, you can replicate a database using the Briefcase.
|
You may need to run the Setup program and add ^UMicrosoft Briefcase^u ^UReplication^u before you can replicate a database using the Briefcase.
|
Suppose you want to create a replica of your Sales database.
|
You first find the file that contains the database in Windows Explorer or NT Explorer.
|
Then you drag the file to the ^UMy Briefcase^u icon.
|
You click ^UYes^u to continue.
|
And you click ^UYes^u to create a backup of the database.
|
Access allows you to specify which replica you want to be the Design Master.
|
In this example, we'll leave the original copy as the Design Master.
|
Next you click ^UOK^u.
|
To view the contents of your Briefcase you double-click the ^UMy Briefcase^u icon.
|
As you can see, your Briefcase now contains a replica of the Sales database.
|
You can work on the database on your laptop, and later synchronize the replica with the Design Master.
@@
Synchronization is the process of updating two members of a replica set.
|
When you synchronize two replicas, the changes made to each replica are applied to the other replica.
|
If changes have been made that conflict with each other, Access provides tools for resolving these conflicts.
|
Suppose you have replicated your Sales database and have made changes to both the Design Master and the Replica of Sales database.
|
You now want to synchronize the two databases.
|
You first open one of the databases - the Replica of Sales database in this example.
|
And you select ^UTools -^u ^UReplication - Synchronize Now^u.
|
If the path and filename of the database with which you want to synchronize is not displayed at the Synchronize With field, you type these in the field.
|
If you don't know the path, you can click ^UBrowse^u to search for the file.
|
If you want to convert the current database into the Design Master, you check the ^UMake ^Bx^b^u ^Uthe Design Master^u checkbox.
|
But in this example we'll leave the checkbox unchecked.
|
Next you click ^UOK^u.
@@
In this example, conflicting changes have been made to the two databases.
|
You click ^UYes^u to resolve the conflict.
|
The Resolve Replication Conflicts dialog box displays the location of the conflict.
|
You click ^UResolve Conflicts^u.
|
Access displays the existing record and the record on the other database that conflicts with it.
|
In this example, conflicting addresses have been entered.
|
If you want to replace the existing record with the conflicting record on the other database, you click ^UOverwrite^u ^Uwith Conflict Record^u.
|
But in this example you click ^UKeep Existing Record^u.
|
You click ^UYes^u.
|
Then you click ^UOK^u.
|
And you click ^UClose^u.
|
If you now open the ^UCustomers^u table, you can see that the existing record was retained.
|
The record has also overwritten the conflicting record in the database with which you were synchronizing.
|
You can synchronize a replica that you created using your Briefcase with the original database.
|
You click the file in My Briefcase and select ^UUpdate Selection^u from the ^UBriefcase^u menu.
@@
Suppose you have created a replica of your Sales database using your Briefcase.
|
You have changed the replica on your laptop, and now you want to synchronize it with the original database.