I read this years ago in a children’s novel whose title I have long since forgotten: When you have the hiccups, pour a small amount of sugar on your tongue, then drink water and swallow. This has worked for me every time.