You can implement most of the replication functions using code, but this isn't the easiest way to manage replication. However, sometimes you might want to implement aspects of the replication process with code so that you can better control the process and its interface from within your application.
All the examples that follow require the use of the Jet Replication Objects (JRO) object library. To access the JRO object library, you must use Tools, References in the VBE to select the Microsoft Jet and Replication Objects 2.5 Library or above. The database that will use the JRO library must be open.
The routine shown in Listing 17.1, located in the Chap17Ex database, ...