If the alleged "correct" passcode doesn't work for you, you're going to have to connect the device to your computer and restore it. By the way, I'm assuming you're referring to the lockscreen passcode.