I totally dealt with that with my son, i had to stay away from greasy food, sugary food, pretty much EVERYTHING i was craving. try to eat small meals of fruits and veggies and lean meats, if it's terrible call your doc i think that they may be able to help you out. there should be a nurse hotline- i know how miserable it is to lose sleep due to heartburn, but i honestly never found a solution. :( oh, you know what, i had to sleep sitting up to avoid being woken up by heartburn- oh the joy of pregnancy! Hang in there!
How about aloe juice? It may take a couple days, but it will help. I took zantac while preggo, check with your doc. That will take a day or so to start working but if you take it twice a day, it really helps. If that doesn't do it, you should be able to take prilosec too. Zantac blocks one acid producer, Prilosec blocks all 3 (this is what my doc told me). Sorry mama, I've been on prescription antacids for 4 years now. If I miss a day, I'm in so much pain, so I feel ya there.