No it won't, firstly stop getting it prescribed if you are, and buy it that way it won't be going on your medical record. I declared it and I just filled out a form was asked two or three quetions and then Cranwell cleared me for pilot. You usually need a four year clean medical record, but I didn't. And just something else to consider, my friend is at Dartmouth now and he has had prescriptions this year.
So don't worry, be honest.