I had the same issue a week after my surgery. I too realized that I needed to be sure I took the Prilosec (omeprazole) before eating. I took it almost as soon as I got out of bed each day and that worked for me. Note: My surgeon prescribed omeprazole to be taken twice daily.