In christophe's example, you need to put 'Dim TmpText as string' in the General section of your form code, otherwise it won't work.