I can't give you the exact steps for this one — I don't play the Pokémon Ranger games, so I'd only be guessing at the menu path.
What I can tell you is that special codes in the Ranger series are entered through an in-game menu option rather than at the title screen, and they're typically tied to limited-time events or bonus missions. A dedicated Pokémon walkthrough site will have the precise location and a list of codes that still function.