I have a 2002 and the original key will lock the glove box just fine, however, I got a spare key made and it can unlock the doors and start the car just fine, but it can't lock the glove box. Does anyone know if there's a fix for this?
I can't speak with any personal knowledge of the 2002 RAV4, but in general vehicles come with 2 or more keys.
The first key is the "main" key and it unlocks every lock in the vehicle including the glove box and the trunk (if the vehicle has one), this key will also start the vehicle.
The second key is know as the "valet" key. It will unlock the doors and start the vehicle, but it will not unlock the glove box or the trunk. The idea is that you would give this key to a valet to park your vehicle while keeping him out of locked up areas.
Is it possible that you had a copy of your valet key made, and not the main key?