A man has been charged after being accused of trying to escape from a detention facility, according to officials with the Rockingham County Sheriff's Office.