Private Sub Combo1_Click()
Dim G, T, P, TT As Variant
Select Case Combo1.Text
Case “I”
G = 2500000
T = 250000
Case “II”
G = 2750000
T = 275000
Case “III”
G = 3000000
T = 300000
Case Else
G = 0
T = 0
End Select
TT = G + T
P = TT * 0.1
Text3.Text = G
Text4.Text = T
Text5.Text = P
Text6.Text = TT – P
End Sub
Private Sub Command1_Click()
Text1.SetFocus
Text1 = “”
Text2 = “”
Text3 = “”
Text4 = “”
Text5 = “”
Text6 = “”
Combo1 = “”
End Sub
Private Sub Command2_Click()
Text1.SetFocus
Text1 = “”
Text2 = “”
Text3 = “”
Text4 = “”
Combo1 = “”
Text5 = “”
Text6 = “”
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Combo1.AddItem “I”
Combo1.AddItem “II”
Combo1.AddItem “III”
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub