Consistency is crucial. This may mean taking time off work to be there to take the pup outside every 20-30 minutes when they are awake. Crate training will also help the 'penny drop' as it teaches the pup to hold on until taken outside. Then, be sure to stay with the pup in the yard so you are there to reinforce how clever they are when they do go in the right place.
Crate training is a great way to start your puppy off on the right paw. Dogs have a natural instinct to keep their den clean, so a properly sized crate, introduced gradually, will create a home base for your puppy and will keep him from having accidents when you can’t watch him. Use the crate when you’re unable to give your puppy your full attention during the day, as well as at nap time and bedtime. Selecting the right size crate is critical, and it should be big enough so that your puppy can comfortably stand up, turn around and lie down but not much bigger. If you opt for a crate that’s too large, your puppy will be able to potty in one corner and sleep comfortably in the other, defeating the purpose of crate training.
The process is the exactly same for older dogs as it is for puppies; prevent accidents from happening by using baby gates and a crate if possible, create a predictable schedule, learn to recognize your dog’s potty signals, accompany your dog outside and immediately reward for all outdoor elimination, properly clean any accidents and supervise your dog until you’re sure that he understands the rules.