OpenQueryDef Method (Professional Edition Only)
See Also Example
Description
Opens a specified QueryDef
Syntax
Set querydef = database.OpenQueryDef( name )
Remarks
The OpenQueryDef method uses these parts:
Part Description
querydef Object variable of type QueryDef.
database Object variable identifying an open Database.
name String expression for the name of a QueryDef that exists in database.
If the QueryDef contains parameters, you must set the parameters before using the QueryDef. You set the parameters using the following syntax:
querydef ! parameter = parametervalue
You can use a QueryDef as you would a Table in the CreateDynaset and CreateSnapshot methods.