It can be frustrating. Oscar is 14 weeks old now. He's only had one overnight indiscretion in over a month which is good, but still has accidents during the day.
99% of the time he does his business outside, but occossionally he'll come in from the patio and pee within a couple of minutes!
I just try to be patient, and i'm gratefull that I didn't fall for a great dane