It is also possible that the text in TextBox2 and TextBox1 contains an invalid character which could cause an error. For instance, you wouldn't be allowed to save a filename containing any of these characters:
<>"|?*
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|