I think the code probably makes more sense for the experts than explaining.
Function Duplicator(strSource As String, strTarget As String, strSkip As String, strIDName As String, varIDVal As Variant, varSetTo As Variant, Optional strExtrSQL As Variant)
...<removed unrelated code>
'Find out the...