See the description for SQLInsertFromSQL_VPA.
The same functionality except for
- the schema must be for the same table as that being inserted to
- DefInsTable is not a parameter
- the ParamArray is passed in in code, not as a Variant
The table name for the INSERT statement
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