my fan over my table works from wall switch but the light fixtures doesnt come on unless i flip the switch numerous times
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.