When the accusation is presented by the district attorney as provided in the preceding section [10-4-18 NMSA 1978], the same must be supported by sworn affidavit or affidavits, and the court must forthwith investigate the matter, and if a jury is in attendance at the time such accusation is presented, the court must order a citation to the defendant and thenceforth the case must proceed as provided in this chapter where the accusation is by a grand jury.
NMS § 10-4-19