I take metformin and it upsets my stomach and causes diarrhea. Can I take an anti diarrhea medication with it?

Some suggestions. With the approval of a health-care professional, reduce your dose, change to er metformin, and/or take it with Imodium (loperamide) otc. Other things you can do: take it with a meal and cut carbonhydrates/lipid intake.