A former Palmyra Middle School teacher accused of having an inappropriate relationship with a former student will go to trial.