Need to know more information first. Does the power come into the light fixture box first and then a switch loop comes down from the light fixture box to the switch? Like the picture in this link:
http://www.estevancomp.ca/tesla/switchloopdiagram.htm
Is the Box you talk about making your connection in actually the light fixture box or some other box?