Create an update or insert statement from the passed in values, validating and formatting each value according to the column type. For INSERT statements validation also includes checking table columns that have not been specified in the passed list, to ensure they are either nullable or have a default value.
The table name
Create an INSERT statement rather than an UPDATE
The WHERE clause (without the WHERE keyword) for the UPDATE statement
The paired column names and values
sql = objSchema.SQLConstructor.MakeUpdateOrInsertFromVals "Product", True, "", _ "ProductName", "Chai", _ "Price", 13.23 If sql <> "" Then xf.DbConnect.RunSQL sql