Trying to use the insert_recordset or update_recordset to pull the month or year values from a field to populate another field. Is there any way to do this with these two commands. Have over 75,000 records to populate and do not want to do this row by row.
Below is the example code I have tried to use with no luck.
update_recordSet xtraAssetMonthlyReport
setting
AcqusitionMonth = mthOfYr(assetDepBook.acquisitiondate),
join assetDepBook
where assetDepBook.depreciationbookid = xtraAssetMonthlyReport.depreciaitonbookid
&& assetDepBook.assetid = xtraAssetMonthlyReport.assetid
OR
insert_recordset XTRAAssetMonthlyAcqMonthTmp (AssetId, depreciationbookid,acquisitionmonth)
select AssetId, depreciationbookid from xtraAssetMonthlyReport
join mthOfYr(acquisitiondate)
from assetDepBook
where assetDepBook.assetid == xtraAssetMonthlyReport.assetid
&& assetDepBook.depreciationbookid == xtraAssetMonthlyReport.depreciationbookid;
update_recordset xtraAssetMonthlyReport
setting acquisitionmonth = xtraAssetMonthlyAcqMonthTmp.acquisitionmonth;
Appreciate any help