The Two-Database Approach When developing multiuser database solutions with Access, you may find it helpful to split your objects into two databases. This approach offers many advantages. These two databases are known as the front-endback-end database. database and the The front-end database has three basic characteristics:
Figure 16.1 The Two-Database Approach If you know from the beginning that you intend to split your solution into two database files, you can develop it with this in mind. Or you can keep tables and objects together in the same file and split them only when you're finished with development and are ready to distribute the solution. The easiest way to split a solution after creating its objects is to use the Database Splitter Wizard. To split an Access solution after creating its objects
The links used by linked tables in the front-end database are based on the location of the back-end database. If users move the back-end database to a different location, the links will fail. If the current links are broken, you can automate the process of linking tables for your users by prompting them for the path to the back-end database when they start your solution. Then you can refresh the links to your solution's tables. For an example of how to do this, see the RefreshLinks procedure in Chapter 14, "Working with the Data Access Components of an Office Solution" (the procedure can also be found in the CreateDatabase module in the DataAccess.mdb sample file, which is available in the ODETools\V9\Samples\OPG\Samples\CH14 subfolder on the Office 2000 Developer CD-ROM). The advantages of using the two-database approach in a multiuser environment are as follows:
|
0 comments:
Post a Comment