handlebarry
Technical User
Hi, the below statment seems to works but could someone please check the syntax - thanks
DoCmd.RunSQL "INSERT INTO tblContractsToProperties (GIS_Property_code, Property_Address, ContractCode) SELECT tblProperties.GIS_Property_Code, tblProperties.Property_Address, tblContracts.ContractCode FROM tblproperties, tblContracts WHERE tblproperties.check = True AND tblContracts.ContractCode = [Forms]![frmContractDetails]![ContractCode]"
DoCmd.RunSQL "INSERT INTO tblContractsToProperties (GIS_Property_code, Property_Address, ContractCode) SELECT tblProperties.GIS_Property_Code, tblProperties.Property_Address, tblContracts.ContractCode FROM tblproperties, tblContracts WHERE tblproperties.check = True AND tblContracts.ContractCode = [Forms]![frmContractDetails]![ContractCode]"