kode Program login
Private Sub Command1_Click()
If Text1.Text = “admin” And Text2.Text = “stmik” Then
Form1.Show
Form2.Hide
Else
MsgBox (“Password salah ,Silahkan Isi data kembali.”)
Text1.Text = “”
Text2.Text = “”
Text1.SetFocus
End If
End Sub
=======================================
Private Sub Command2_Click()
MsgBox (“Terima Kasih”)
End
End Sub
=========================================
Private Sub Label4_Click()
Form3.Show
Form2.Hide
End Sub
=========================================
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
If Text1.Text = “admin” And Text2.Text = “stmik” Then
Form1.Show
Form2.Hide
Else
MsgBox (“Password salah ,Silahkan Isi data kembali.”)
Text1.Text = “”
Text2.Text = “”
Text1.SetFocus
End If
End If
End Sub
========================================
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
If Text1.Text = “admin” And Text2.Text = “stmik” Then
Form1.Show
Form2.Hide
Else
MsgBox (“Password salah ,,Silahkan Isi data kembali.”)
Text1.Text = “”
Text2.Text = “”
Text1.SetFocus
End If
End If
End Sub
===================================================
kode Program data mahasiswa
Private Sub Command1_Click()
Unload Me
End Sub
================================
Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text1.SetFocus
End Sub
===============================
Private Sub Command3_Click()
MsgBox (“Terima Kasih”)
End
End Sub
==============================
Private Sub Command4_Click()
Unload Me
End Sub
==============================
Private Sub Command5_Click()
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text7.Text = “”
Text8.Text = “”
Text9.Text = “”
Text10.Text = “”
Text4.SetFocus
End Sub
====================================
Private Sub Command6_Click()
MsgBox (“Terima Kasih”)
End
End Sub
====================================
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
===================================
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text3.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
====================================
Private Sub Text6_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text7.SetFocus
End If
End Sub
Private Sub Text7_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text8.SetFocus
End If
End Sub
Private Sub Text8_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text9.SetFocus
End If
End Sub
=========================================
Private Sub Text9_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text10.SetFocus
End If
End Sub
========================================