My doctor told me that for the medicine to work you need to take it a few days before you are going to be cramps in order for it to work.
For cramps exercise. Do exercises like walking, running, riding a bike, swimming, or any activity that gets your heart rate up. Do breathing exercises like meditation, or yoga.
Eat healthy foods like fruits, veggies (especially the leafy green ones), whole grains, and yogurt.
Limit fat, salt, sugar, caffeine, and alcohol.
Putting a heating pad on your belly or lower back, Taking a hot bath, Having an orgasm whether its by yourself or with a partner.