I wouldn't change lens on account of swapping d40x to d90 if that's what you mean as both are crop sensor cameras so the 35mm will be the same on each.
As to whether 35mm or 50mm, I agree with ronnus. I have both and the 35 gets far more use. Does depend if you take lots of portraits though, I don't really