Light switch affecting other lights
I just replaced a light switch with a switch that has a dimmer on it. The lights I wanted to have on the dimmer are working fine, but the problem is with the other lights in the bathroom. The switch I replaced is in the hallway leading to the bathroom. The switch I replaced is now affecting the bathroom lights in an odd manner. The only way for me to turn the bathroom lights on now is to have those switches in the on position and then have the new hallway switch in the off position, yes the off position. If I have the hallway switch in the on position, which obviously turns the hallway lights on, it turns the bathroom lights off. The dimmer also works with the bathroom lights, but again the hallway switch has to be off for the bathroom lights to be on. So because of this I cannot have both the hallway and bathroom lights on at the same time. This is confusing me... any help is much appreciated.
Thank You!!