Sql = "INSERT INTO SupplyRate ( PartNumber )" _
& " SELECT SupplierPartNum.PartNumer" _
& " FROM SupplierPartNum" _
& " WHERE SupplierPartNum.PartNumer Not In (select SupplyRate.PartNumber from SupplyRate) AND SupplierPartNum.Technology=[Forms]![FrmSupplyRate]![CmbTechnology]"
方法2:
Sql = "INSERT INTO SupplyRate ( PartNumber )" _
& " SELECT SupplierPartNum.PartNumer" _
& " FROM SupplierPartNum" _
& " WHERE SupplierPartNum.PartNumer Not In (select SupplyRate.PartNumber from SupplyRate) AND SupplierPartNum.Technology='" & [Forms]![FrmSupplyRate]![CmbTechnology] & "'"