in the following code i can't reveal q's value on the Label1.Also i have no run time errors,so i don't know what is the problem.
------------------------------------------------------------------------
dim q as variant
If (CDec(Text1.Text) > 0 And CDec(Text2.Text) > 0 And CDec(Text3.Text)> 0 And CDec(Text4.Text) > 0 Then
q = CDec((Val(Text1.Text) * Val(Text2.Text)) / (Val(Text1.Text) + Val(Text2.Text)) + (Val(Text3.Text) * Val(Text4.Text)) / (Val(Text4.Text) + Val(Text3.Text)))
Label1.Caption = q
------------------------------------------------------------------------
after that Label1.Caption remains null
Have you got any idea what the problem might be?