Port of base_bank based on PCaetan work

`p_acc_ids` contains a recordset so you can remove `_ids`