Trapping and moving raccoons does not work. A detailed study revealed that raccoons have a strong homing ability and will return quickly. So, removing a raccoon and driving it 20 miles out into the country will not solve your problem.
The only way to keep raccoons out of structures is to find out how they get in. Raccoons leave at dark so have your patching materials ready. Check to make sure the animal has left for the evening (but make sure it is not a female with babies inside the structure). Patch the hole so it cannot get back in when it returns. The only way a trap will work in this situation is if you trap the raccoon as it leaves the structure and hold it in the trap while you patch the hole. Then release the raccoon right there.