You will need to pull out the dishwasher to replace the heater.
Don't be afraid to cut the copper line (assuming you can turn the water off). Replace it with the new style flexible hose, so you'll be able to pull the dishwasher out in the future.
Find Appliance Parts at AppliancePartsPros.com - Largest inventory in the U.S. with 91% of all in-stock orders delivered within 2 business days. Thousands of photos and diagrams make it very easy to find the right part. Enter your appliance model here.