In addition,
If the textboxes do not have a variable or field assigned to the CONTROLSOURCE property, just set the VALUE property to 0 (zero) in the form designer and that will make them numeric so that the sum works.
>Alex
>
>With ThisForm
>
> .txt5.value = Val( .txt1.value ) + Val( .txt2.value ) + Val( .txt3.value ) + Val( .txt4.value )
>
>EndWith
>
>i.e. VAL( Str ) = numeric
>
>However, I think that you are either using the wrong controls for this or the wrong data source types for the controls.
>
>Jos
>
>>
>>Man, I have try that but it doesnt seams to work, in the 5 textbox it just add the value of the others like it was a string value, but I want it as a numeric, I want to ADD the values of the previos 4 textboxes and in the 5 I want to add the result by clicking on a button.
R. Davila
DBA / Network Administrator
Administracion de Fomento Comercial
Gobierno de Puerto Rico
Still waiting for FoxPro for LINUX