Name

Record.CopyRecord Method — (Versions 2.5, 2.6)

Synopsis

record.CopyRecord (Source, _
                   Destination, _
                   UserName, _
                   Password, _
                   Options, _
                   Async) As String

The CancelBatch is a member method of the Recordset object that cancels the currently pending batch update.

Arguments

Source (String)

Optional. Indicates the URL of a resource to be copied. If this argument is omitted, then the resource represented by the current Record object is copied.

Destination (String)

Optional. Represents a URL value that indicates where the resource will be copied to.

UserName (String)

Optional. Indicates, if necessary, the username that will be used to access the resource indicated by the Destination argument.

Password (String)

Optional. Indicates, if necessary, the password to verify the UserName argument.

Options (CopyRecordOptionsEnum)

Optional. Indicates the behavior of the copy operation. The default value for this argument is adCopyUnspecified.

Async (Boolean)

Optional. Indicates whether this operation should be executed asynchronously.

Returns

String

Description

By default, the CopyRecord method will not overwrite a resource that already exists. To force the replacement of the destination resource, use the adCopyOverWrite option.

By default, the CopyRecord method will copy all subdirectories and files beneath the source resource unless the adCopyNonRecursive option is specified.

If the source and the destination resources are identical, an error will occur. If the destination resource is a child of the source ...

Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.