Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gilt für: Access 2013, Office 2013
Legt einen Wert für ein Relation-Objekt fest oder gibt einen Wert für ein Relation-Objekt zurück, der angibt, ob diese Beziehung beim Auffüllen eines Teilreplikats aus einem vollständigen Replikat berücksichtigt werden soll. (Nur Datenbanken des Microsoft Access-Datenbankmoduls). Boolescher Wert mit Lese-/Schreibzugriff.
Syntax
Ausdruck . PartialReplica
Ausdruck Ein Ausdruck, der ein Relation-Objekt zurückgibt.
Hinweise
Die Einstellung bzw. der Rückgabewert ist ein boolescher Datentyp, der True ist, wenn die Beziehung während der Synchronisation erzwungen werden soll.
This property enables you to replicate data from the full replica to the partial replica based on relationships between tables. You can use the PartialReplica property when setting the ReplicaFilter property alone can't adequately specify what data should be replicated to the partial. For example, suppose you have a database in which the Customers table has a one-to-many relationship with the Orders table, and you want to configure a partial replica that only replicates orders from customers in the California region (instead of all orders). Es ist nicht möglich, die ReplicaFilter-Eigenschaft für die Tabelle Orders auf Region = 'CA' festzulegen, da sich das Feld Region in der Tabelle Customers und nicht in der Tabelle Orders befindet.
To replicate all orders from the California region, you must indicate that the relation between the Orders and Customers tables will be active during replication. Once you've created a partial replica, the following steps will populate it with all orders from the California region:
Legen Sie die ReplicaFilter-Eigenschaft für das Customers TableDef-Objekt auf "Region = 'CA'" fest.
Set the value of the PartialReplica property to True on the Relation object corresponding to the relationship between Orders and Customers.
Rufen Sie die PopulatePartial-Methode auf.
Hinweis
When you set a replica filter or replica relation, be aware that records in the partial replica that don't satisfy the restriction criteria will be removed from the partial replica, but not from the full replica. Angenommen, Sie legen die ReplicaFilter-Eigenschaft für die Customers TableDef im Teilreplikat auf "Region = 'CA'" fest und füllen dann die Datenbank erneut auf. This will insert or update all records for California-based customers.
Wenn Sie dann die ReplicaFilter-Eigenschaft auf "Region = 'FL'" zurücksetzen und die Datenbank erneut auffüllen, werden alle Kalifornischen Regionsdatensätze im Teilreplikat entfernt, und alle Datensätze von Kunden mit Sitz in Florida werden aus dem vollständigen Replikat eingefügt. No records in the full replica will be deleted.
Before setting either the ReplicaFilter or PartialReplica property, it's a good idea to synchronize the partial replica in which you are setting these properties with the full replica. This will ensure that pending changes in the partial replica will be merged into the full replica before any records are removed in the partial replica.