My son has an HP laptop and playing around, changed his password and then couldn't get into his account. There were a number of problems here, any of which we could have fixed had we been paying more attention earlier on (like soon after he got his laptop):
We've now done both of these things since we were able to restore access to the machine under his previous password. But it was a bit of a trick to get access under the previous password. I figured we were going to have to reinstall Vista, using the File and Settings transfer program to first grab his old settings and files, and then reinstall all the programs - probably a 3-4 hour undertaking. But then I had another thought.
The key here was using Vista's System Restore feature. The exact steps will probably vary on your machine (and this is from my memory on his HP laptop, having just done this) but roughly what we did was:
I've used System Restore in other cases to get rid of really wierd behavior, and it always works like a charm. This is yet another use.
Oh, yeah, and we then created a secondary administrative account on the machine. Do that right now if you have a laptop with just one admin account - then squirrel away the password somewhere safe at home and you'll thank yourself one day.