See the description for SQLInsertFromSQL_VPA.
The same functionality except for
- TemplateTableName is used to retrieve objTableSchema
- the ParamArray is passed in in code, not as a Variant
The table name for the INSERT statement
The table name used to retrieve the schema used for column generation and validation (may be for a different table to IntoTableName but should be similar at least)
The table name to append to a column name in the SELECT value list
The FROM part of the SELECT statement.
Automatically generate column insertions for columns not defined in the passed name/value list
Allow column names in the passed name/value list that are not in the table schema
Generate column insertions for the identity column (otherwise it is omitted)
Automatically add nz() around inserted column names
The paired column names and values