The absolute best dishwasher cleaner/deodorizer is Tang powder, the citric acid in it degreases/cleans/deodorizes like nothing else! Even store brand orange drink mix works great! Just put one cup of the powder in the bottom of the dishwasher and run it on a long cycle.
In the meantime (until the water is turned back on), get the old dirty dishes out ASAP, and try the other suggestions for odor control. I would put some charcoal briquetets in an old panty hose leg and hang it from the top rack.
Place a mug full of vinegar in the empty dishwasher and run. This will remove most odors. This can be done once a month to keep the dishwasher running well and the dishes coming out clean. The vinegar breaks down fats and oils that accumulate in the dishwashers drains over time.
Also if the odor is very strong and pervasive take a tray and fill it with charcoal briquets (the ones you use for the summer BBQ) leave the tray in the dishwasher when not in use. Change the tray every 1-2 days until the odor is gone. This also works well for the Fridge or just about anywhere else you can think of.
Any of your natural cleaners, i.e. vinegar, soda, bleach, should work. There might be a problem getting it to run after having been turned off for a long time. Some times they don't want to work after being off for a long time.
Add your voice to the conversation. Click here to answer this question.