As soon as practicable after the sheriff takes custody of a witness pursuant to an attachment issued as provided by Article 24.111, the sheriff shall submit an affidavit to the issuing court stating that the sheriff has taken custody of the witness.
Tex. Code Crim. Proc. § 24.221