Open Method (ADO Record)
Opens an existing Record object, or creates a new item represented by the Record, such as a file or directory.
Source may be:
-
A URL. If the protocol for the URL is http, the Internet Provider will be invoked by default. If the URL points to a node that contains an executable script (such as an .ASP page), a Record that contains the source instead of the executed contents is opened by default. Use the Options argument to modify this behavior.
-
A Record object. A Record object opened from another Record will clone the original Record object.
-
A Command object. The opened Record object represents the single row returned by executing the Command. If the results contain more than a single row, the contents of the first row are placed in the record and an error may be added to the Errors collection.
-
An SQL SELECT statement. The opened Record object represents the single row returned by executing the contents of the string. If the results contain more than a single row, the contents of the first row are placed in the record and an error may be added to the Errors collection.
-
A table name.
If the Record object represents an entity that cannot be accessed with a URL (for example, a row of a Recordset derived from a database), the values of both the ParentURL property and the field accessed with the adRecordURL constant are null.
Note
|
|---|
|
URLs using the http scheme will automatically invoke the Microsoft OLE DB Provider for Internet Publishing. For more information, see Absolute and Relative URLs. |
Note