A 43-year-old Peebles woman altered a doctor's prescription in an attempt to get 60 diazepam tablets, Selkirk Sheriff Court has been told.
Janice Wood of Connor Street, had been given a prescription for co-codamol by a doctor at Borders General Hospital on March 17.
But she altered it by adding 60 diazepam tablets before presenting the slip of paper at Boots the chemist in Peebles.
However, the shop manager suspected foul play, Wood was not given the tablets and police were called.
Defence lawyer Ross Dow said his client was suffering pain at the time and it was a "desperate measure on her part".
Sheriff Derrick McIntyre deferred sentence for three months for good behaviour.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules hereComments are closed on this article