Wrong recordset loop implementation in v2022.
Please refer to this topic if you want to loop through recordset in v2022.