What is a medicine that could keep cramps away but not midle it does not work for me

Milan
What is a medicine that could keep cramps away?