Vaginal infections

I am tired of having vaginal infection (yeast infection) I get medicine (from my doctor and pharmacy) when this happens to me but in a month it just comes back, does anyone has this problem too??