Can long term use of prescribed meds affect diabetes? I'm newly diagnosed after being pre diabetic for a long time. New meds for this. I am currently waiting to go for a cardiograph due to high blood pressure. New meds for this. I have recently started having severe muscle spasms and thought it was fibromyalgia getting worse. But research has shown long term use of lanzoprazole can affect magnesium levels with symptoms being muscle spasms. I'm now thinking what long term meds that I am on are affecting my diabetes? Also why am I having to find this out for myself when I'm getting blood tests at the clinic?