The Herald-Times of Bloomington reports that the 26-year-old Martinsville man sent messages last month to deputy prosecutor Courtney Swank on her department-issued cell phone.
They read "Roxy twenties fifteen" and "Hey buddy just wonderin if you needed any fortys."
Police tell the newspaper the wording refers to oxycodone and other prescription drugs.
The man is charged with dealing in a controlled substance, possession of a controlled substance and public intoxication.
Information from: The Herald Times, http://www.hoosiertimes.com