Private Sub CmdBATAL_Click()
txtNPM.setfous
txtNPM = “”
TxtNAMA = “”
txtALAMAT = “”
End Sub
Private Sub CmdKELUAR_Click()
End
End Sub
Private Sub CmdLAGI_Click()
txtNPM.SETFOCUS
txtNPM = “”
TxtNAMA = “”
TxtNAMA = “”
End Sub
Private Sub TxtNAMA_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtALAMAT.SETFOCUS
End If
End Sub
Private Sub txtNPM_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TxtNAMA.SETFOCUS
End If
End Sub
Private Sub cmdBATAL_Click()
Txtnppm.SetFocus
TxtNPM = “”
txtNAMA = “”
txtAlamat = “”
TxtAGAMA = “”
TxtjenisKELAMIN = “”
txtnamaAYAH = “”
TxtnamaIBU = “”
Txtpekerjaanayah = “”
TxtpekerjaanIBU
End If
End Sub
Private Sub CmdKELUAR_Click()
End
End Sub
Private Sub CmdLAGI_Click()
Txtnppm.SetFocus
TxtNPM = “”
txtNAMA = “”
txtAlamat = “”
TxtAGAMA = “”
TxtjenisKELAMIN = “”
txtnamaAYAH = “”
TxtnamaIBU = “”
Txtpekerjaanayah = “”
TxtpekerjaanIBU
End If
End Sub
Private Sub txtNAMA_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtAlamat.SetFocus
End If
End Sub
Private Sub TxtNPM_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtNAMA.SetFocus
End If
End Sub
Private Sub txtn1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtn2.SetFocus
End If
End Sub
Private Sub cmdHITUNG_Click()
Txthasil = Val(txtn1) * Val(txtn2)
End If
End Sub
Private Sub CmdBERSIH_Click()
txtn1 = “”
txtn2 = “”
Txthasil = “”
End Sub
Private Sub cmdKELUAR_Click()
End
End Sub
Private Sub txtn2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txthasil = Val(txtn1) * Val(txtn2)
End If
End Sub