Sounds like you need to read Coping with Scoping.
In reply to Re: Parental Variables by Fletch in thread Parental Variables by Anonymous Monk