It will convert numbers to strings and vice versa. Vb is very forgiving in that. For the most part use the variant data type and it will solve your problems for you. The following should be the form layout Click on the bottom textbox and change its locked property to true to prevent anyone entering any text. The program runs into an errot 13 type mismatch because the line txtDate.
Date tries to insert today's computer date.
Date needs to be converted to a string txtResult.