The switch on my lamp broke. Anyone know how I can fix it?

I was trying to switch my lamp on yesterday when the switch broke off. The switch is the kind that turns right to turn on. I tried a million ways to fix the lamp and nothing seems to work. I'm not sure what to do. Does the whole lamp have to be rewired? Can someone help me?
5 answers 5