CreateQuery(table)

Returns the Query object that is selection of records from tables of external database. The table argument specifies the Table object that is a table upon which a query has been built. This table is the root table of created query. The table argument must be Null if the query being created will be based on an SQL statement SELECT specified by the Query::SQL property. The created query is not added to the ExternalDatabase::Queries collection (it is uncataloged). Uncataloged queries can be used to access to records. To catalog a query, set its name by the Query::Name property and add it to the ExternalDatabase::Queries collection.