A person who would otherwise be required to be transferred to a reserve component under
section 651 of this title or under the Military Selective Service Act (
50 U.S.C. 3801 et seq.), is entitled, if he is qualified and accepted, to be appointed as an officer of any armed force that he chooses and to participate in the programs authorized for that armed force. However, unless the two Secretaries concerned consent, he may not be appointed as a Reserve of an armed force other than that from which he is transferred. All periods of his participation shall be credited against the total period of service required of him under
section 651 of this title or under the Military Selective Service Act (
50 U.S.C. 3801 et seq.). However, no period may be credited more than once.