Purpose
Set a relation from this server to the child server; standard database operations are restricted to those records that match the relation.
Parameters
oChild | The server attached to the child server must be specified as a DaoQuery object. If omitted, all relations for this server are removed (the recommended way of doing this is the ClearRelations() method). |
uFieldName | The field name representing the relation for the server. You can also supply an array of field names, when more than one field is used to set the relation. |
cExpression (Optional) text representation of the relation
Returns
A logical value TRUE when successful, otherwise FALSE
Description
In the DaoQuery class, SetRelation() functions identically to SetSelectiveRelation(). The relation is implemented as an extension to the WHERE clause.
Sends a NotifyRecordChange message to the child server, if successful.
Class
See Also