Private Sub Combo1_Click()
Dim NPM, NM, JR As String
NPM = Combo1.Text
If NPM = “11201030” Then
NM = “SISKA IKAWATI”
JR = “D3-MANAJEMEN INFORMATIKA”
ElseIf NPM = “11201037” Then
NM = “ROFIKOH ALFULAELI”
JR = “D3-MANAJEMEN INFORMATIKA”
Else
NM = “TRIA SEPTIANA”
JR = “D3-MANAJEMEN INFORMATIKA”
End If
Text1.Text = NM
Text2.Text = JR
End Sub
Private Sub Command1_Click()
Dim NQ, NT, UTS, UAS, NA As Integer
Dim HM As String
NQ = Val(Text3.Text)
NT = Val(Text4.Text)
UTS = Val(Text5.Text)
UAS = Val(Text6.Text)
NA = (NQ + NT + UTS + UAS) / 4
If NA < 51 Then
HM = “E”
ElseIf NA < 61 Then
HM = “D”
ElseIf NA < 71 Then
HM = “C”
ElseIf NA < 81 Then
HM = “B”
Else
HM = “A”
End If
Text7.Text = NA
Text8.Text = HM
End Sub
Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text7.Text = “”
Text8.Text = “”
Combo1.Text = “”
Combo1.SetFocus
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
Combo1.AddItem “11201030”
Combo1.AddItem “11201037”
Combo1.AddItem “11201038”
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text4.SetFocus
End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text5.SetFocus
End If
End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text6.SetFocus
End If
End Sub



