"Operator/operand type mismatch" means that there is an incompatibility between data types. For instance, you try to use "+" to combine a character with a numeric, or perhaps a function expects a date and receives a text.
ctot(ThisForm.Text2.Value) only works if the Value is of type Character. It won't work with numeric, for example.
>hi,
>i get error message
>
>Operator/operand type mismatch
>
>store TTOC({^2000/01/01} + CTOT(thisform.text2.value)- {^2000/01/02} + CTOT(thisform.text1.value)) to tResult
>
>
>and variable tResult not found
>
>thanks.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)