I suggest putting the "else" back here, otherwise, the risk is that the property takes precedence over the strFileNameAndPath value.