Professional Documents
Culture Documents
Private Sub Command1
Private Sub Command1
Text6.Text = Year(Date)
A = Val(Text5.Text)
b = Val(Text8.Text)
c = Val(Text4.Text)
d = Val(Text7.Text)
e = Val(Text3.Text)
f = Val(Text6.Text)
If (A >= b) Then
Text11.Text = A - b
Else
txxt11.Text = (A + Val(30) - b)
d = d * Val(1)
End If
If (c >= d) Then
Text10.Text = c - d
Else
Text10.Text = (c + Val(12) - d)
f = f + Val(1)
End If
Text9.Text = e - f
End Sub
If (IsNumeric(Text1.Text)) Then
Text1.Text = ""
Text1.SetFocus
Else
Text2.SetFocus
Text3.Text = ""
Text3.SetFocus
End If
Else
End If
End Sub
If (IsNumeric(Text4.Text)) Then
Text5.SetFocus
Else
Text4.SetFocus
End If
Else
Text4.Text = ""
Text4.SetFocus
End If
Else
End If
End Sub
End Sub
End Sub
Text7.SetFocus
Else
Text6.Text = ""
Text6.SetFocus
End If
Else
Text6.Text = ""
Text6.SetFocus
End If
Else
End If
End Sub
End Sub
If (IsNumeric(Text7.Text)) Then
Text8.SetFocus
Else
Text7.Text = ""
Text7.SetFocus
End If
Else
Text7.Text = ""
Text7.SetFocus
End If
Else
End If
End Sub
If (IsNumeric(Text8.Text)) Then
Else
MsgBox ("error solo numerospositivos")
Text8.Text = ""
Text8.SetFocus
End If
Else
Text8.Text = ""
Text8.SetFocus
End If
Else
End If
End Sub