It depends on which one you want to use. The Userid from the miembros database will be in $rec2{'Userid'} and the Userid from the vacantes database will be in $rec{'Userid'}. It would be preferable to give the fields different names in the databases, though.
JPD
JPD