CDaoQueryDef Members
Base Class Members
CDaoQueryDef Members
Data Members
A pointer to the OLE interface for the underlying DAO querydef object. |
|
A pointer to the CDaoDatabase object with which the querydef is associated. The querydef might be saved in the database or not. |
Construction
Appends the querydef to the database's QueryDefs collection as a saved query. |
|
Constructs a CDaoQueryDef object. Next call Open or Create, depending on your needs. |
|
Closes the querydef object. Destroy the C++ object when you finish with it. |
|
Creates the underlying DAO querydef object. Use the querydef as a temporary query, or call Append to save it in the database. |
|
Opens an existing querydef stored in the database's QueryDefs collection. |
Attributes
Returns nonzero if the query can update the database. |
|
Returns the connection string associated with the querydef. The connection string identifies the data source. (For SQL pass-through queries only; otherwise an empty string.) |
|
Returns the date the saved query was created. |
|
Returns the date the saved query was last updated. |
|
Returns the name of the querydef. |
|
Returns the timeout value used by ODBC (for an ODBC query) when the querydef is executed. This determines how long to allow for the query's action to complete. |
|
Returns the number of records affected by an action query. |
|
Returns nonzero if the query defined by the querydef returns records. |
|
Returns the SQL string that specifies the query defined by the querydef. |
|
Returns the query type: delete, update, append, make-table, and so on. |
|
Returns nonzero if the querydef is open and can be executed. |
|
Sets the connection string for a SQL pass-through query on an ODBC data source. |
|
Sets the name of the saved query, replacing the name in use when the querydef was created. |
|
Sets the timeout value used by ODBC (for an ODBC query) when the querydef is executed. |
|
Specifies whether the querydef returns records. Setting this attribute to TRUE is only valid for SQL pass-through queries. |
|
Sets the SQL string that specifies the query defined by the querydef. |
Operations
Executes the query defined by the querydef object. |
|
Returns the number of fields defined by the querydef. |
|
Returns information about a specified field defined in the query. |
|
Returns the number of parameters defined for the query. |
|
Returns information about a specified parameter to the query. |
|
Returns the value of a specified parameter to the query. |
|
Sets the value of a specified parameter to the query. |