RSS

Form Kata Sandi

B7

Private Sub Command1_Click()
Dim Cari As String * 50
Cari = Text1.Text
With Data1.Recordset
.Index = “SandiIndex”
.Seek “=”, Cari
If .NoMatch Then
MsgBox “Maaf Kanta Sandinya Salah, Coba Lagi!”, vbInformation, “Perhatian”
Text1.Text = “”
Text1.SetFocus
Else
Form8.Show
Form7.Hide
End If
End With
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command3_Click()
Form7.Height = 4740
Frame2.Visible = True
Text2.SetFocus
End Sub

Private Sub Command4_Click()
If Text3.Text = Text4.Text Then
Form7.Height = 2460
Data1.Recordset.Edit
Data1.Recordset.Fields!kata_sandi = Text3.Text
Data1.Recordset.Update
Else
MsgBox “Konfirmasi yang anda masukkan tidak sesuai dengan Kata Sandi yang baru!?!”, vbCritical, “Peringatan”
Text3.Text = “”
Text4.Text = “”
Text3.SetFocus
End If
End Sub

Private Sub Form_Activate()
Form7.Height = 2460
Text1.SetFocus
End Sub

Private Sub Text1_Change()
Command1.Default = True
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Dim Cari As String * 50
Cari = Text2.Text
With Data1.Recordset
.Index = “SandiIndex”
.Seek “=”, Cari
If .NoMatch Then
MsgBox “Maaf Kanta Sandinya Salah, Coba Lagi!”, vbInformation, “Perhatian”
Text2.Text = “”
Text2.SetFocus
Else
Text3.SetFocus
End If
End With
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text4.SetFocus
End If
End Sub

 

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

 
%d blogger menyukai ini: