1. Start your Pokémon Diamond or Pearl game.
2. Go to the main menu.
3. Select the "Cheats" option.
4. Enter the following cheat code:
12345ZAP999
5. Select the "Enable" option.
6. Save your game.
Now, when you start your game, you will be able to access all of the locations in the Kanto, Hoenn, Johto, and Pearl regions.