They cannot be trained. Ducks do not have sphincter muscles and have literally no control of their defecation/urination. Ducks pretty much spend most of their waking time foraging, and as food goes in one end, the GI tract chugs along and empties feces out of the other end.