my fan over my table works from wall switch but the light on the fan wont come on unless I flip the switch a number of times before light will come on. what is causing this problem. if I use the pull chain on the light I have no problem turning it on and off
Read the manual for your fan.
For some fans, this is an intended feature to allow control of both fan and light from a single light switch.
could be the switch arching contacts or the condenser on the fan or the fan bearings need lubrication. Check the switch first connecting input to the switch onto the outlet (do this with the power off unless you are used to working on a live circuit)