Programmatically Creating a Query To programmatically create a query using either the Microsoft Access Library or DAO, you can use theCreateQueryDef()method of theDatabaseobject. The syntax of this method is: CreateQueryDef(NewQueryName,SQLStatement) The first argument is the name you will give t...