Keep the water close and just use it everytime. It takes a lot, and I mean A LOT of patience to get them off from the table, but it works. Casper and Kitty were (and still are) trained with water and works well.
Just remember to do it all the time!

Good luck!