A.Private Sub Text1_KeyPress( KeyAscii As Integer) If KeyAscii=13 Then 回车符的ASCII码是13 a=Val(Text1) If a>;0 Or a<=100 Then Text2.SetFocus E1se Textl.SetFocus:MsgBOX("分数错") End If End If End Sub B.Private Sub Textl_KeyPress(KeyAscii As Integer) If KeyAscii=13 Then 回车符的ASCII码是13 a=val(Textl) If a>=0 And a<=100 Then Textl.SetFocus E1se Text2.SetFocus:MsgBOX("分数错") End If End If End Sub C.Private Sub Textl_KeyPress(KeyAscii As Integer) If KeyAscii=13 Then 回车符的ASCII码是13 a=val(Textl) If a<0 And a>100 Then Text2.SetFoeus Else Textl.SetFocus:MsgBOX("分数错") End If End If End Sub D.Private Sub Text1l一Key Press (Key Ascii As Integer) If KeyAscii=13 Then 回车符的ASCII码是13 a=Val(Text1) If a>=0 And a<=100 Then Text2.SetFocus Else Text1.Set Focus:Msgbox("分数错") End If End If End Sub