Drugs that reduce acid production can make it harder for the stomach to absorb vitamin B12.