mlcktmguy
asked on
Query Help
I want to update values in one table 'tblTaxRecs' with information from another table 'tblFees'
tblFees contains two fields 'BRT Numeric Long Interger' and 'FeeAmount Numeric Double'
The Pertinent fields in tblTaxRecs' are 'BRT numeric Long Integer', 'TaxYear Numeric Long Interger', 'FeeAmount Numeric Double', 'DateRevised Date', 'UserRevised Short TExt'.
For every record in tblTaxRecs with a taxyear of 2018 and matching a BRT in tblFees, I want to replace the 'FeeAmount' with the corresponding FeeAmount in tblFees that matches the BRT in tblTaxRecs. If possible I also want to stamp each updated record in tblTaxRecs with the current date and time in field 'DateRevised' and the string 'Updt20190318'.
tblFees contains two fields 'BRT Numeric Long Interger' and 'FeeAmount Numeric Double'
The Pertinent fields in tblTaxRecs' are 'BRT numeric Long Integer', 'TaxYear Numeric Long Interger', 'FeeAmount Numeric Double', 'DateRevised Date', 'UserRevised Short TExt'.
For every record in tblTaxRecs with a taxyear of 2018 and matching a BRT in tblFees, I want to replace the 'FeeAmount' with the corresponding FeeAmount in tblFees that matches the BRT in tblTaxRecs. If possible I also want to stamp each updated record in tblTaxRecs with the current date and time in field 'DateRevised' and the string 'Updt20190318'.
Use the query designer. Start with creating a SELECT query which returns the data necessary to do this. Then change the query to UPDATE and set the Update To columns and their source column.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Could you post some sample pertinent data for the two tables (in text, not pictures), please, and what you expect as a result of the update of that data?
ASKER
Worked perfectly