You can take
Zantac before you get heartburn. Tums is typically after it has set in. To be on the comfortable side take Zantac prior to eating, look closely at what you are eating to cause the acid buildup i.e. orange juice, tomatoes and remove it from your diet, and adjust your sleeping to a more upright position.