Password issue

I am trying to create from the main accounts table user roles in sub tables and also delete them but not through the main builder, so as to allow clients to control via their panel.

No issue in creating and deleting user roles from the sub table but the main issue now is passing the password from the main accounts table to the sub table.

Everything else i can pass over but not the password which then if blank does not allow access to the relevant secure page.

Any help welcome!