No interior power ammater wire not getting power only when the key is in acc

So I may be way off on this but I was going to try to change the ignition switch seeing as it loses all power to the wire that goes to that ammater when it's turned to acc