JKDeveloper0718
Programmer
I have a query that has an ID and 3 fields as follows:
SELECT tblUnitApartment.HouseholdId, tblUnitApartment.UASecurityDeposit, tblUnitApartment.UASecurityDepositPet, tblUnitApartment.UASecurityDepositPetAd
FROM tblUnitApartment;
I have a table that has these same 3 fields and a HouseholdId called tblHoBackgroundAdmission. I just added these fields because I need to tranfer the data from one table to the other. What I need is to do an update on the tblHoBackgroundAdmission table where I set the 3 security deposit fields to the queries result based on the HouseholdId. In other words it will update each record in the tblHoBackgroundAdmission with the security deposit elements in the query above.
Suedo code:
update tblHoBackgroundAdmission
set tblUnitApartment.UASecurityDeposit, tblUnitApartment.UASecurityDepositPet, tblUnitApartment.UASecurityDepositPetAd
where SepQuery.HouseholId = tblHoBackgroundAdmission. HouseholdId
In (Select SepQuery.UASecurityDeposit, SepQuery.UASecurityDepositPet, SepQuery.UASecurityDepositPetAd
from SepQuery)
SELECT tblUnitApartment.HouseholdId, tblUnitApartment.UASecurityDeposit, tblUnitApartment.UASecurityDepositPet, tblUnitApartment.UASecurityDepositPetAd
FROM tblUnitApartment;
I have a table that has these same 3 fields and a HouseholdId called tblHoBackgroundAdmission. I just added these fields because I need to tranfer the data from one table to the other. What I need is to do an update on the tblHoBackgroundAdmission table where I set the 3 security deposit fields to the queries result based on the HouseholdId. In other words it will update each record in the tblHoBackgroundAdmission with the security deposit elements in the query above.
Suedo code:
update tblHoBackgroundAdmission
set tblUnitApartment.UASecurityDeposit, tblUnitApartment.UASecurityDepositPet, tblUnitApartment.UASecurityDepositPetAd
where SepQuery.HouseholId = tblHoBackgroundAdmission. HouseholdId
In (Select SepQuery.UASecurityDeposit, SepQuery.UASecurityDepositPet, SepQuery.UASecurityDepositPetAd
from SepQuery)