I drink coffee before I go to work. Then when I get to work, I go pee right before work starts.
A couple years ago when I was a newspaper carrier, I had to stop drinking coffee in the morning, because I had no easy access to bathrooms and it was always a tense race between finding the 24 hour McDonald's and pissing my pants.