Listing Program: Menu Password
Listing Program: Menu Password
MENU PASSWORD
"29071982" Then
"SUCCES")
Form5.Show
Unload Me
Else
If PESAN = 8 Then
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Else
Unload Me
End If
End If
End Sub
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
MENU UTAMA
Form7.Show
End Sub
Form3.Show
End Sub
DataReport1.Show
End Sub
Form2.Show
End Sub
Form1.Show
End Sub
Unload Me
End Sub
Form4.Show
End Sub
Private Sub MK_Click()
Unload Me
End Sub
SIMPAN DATA
RSDATA.AddNew
RSDATA!NO_PENDAFTARAN = Text1.Text
RSDATA!TGL_PENDAFTARAN = Text2.Text
RSDATA!NAMA_PEMOHON = Text3.Text
RSDATA!NAMA_KECAMATAN = Text4.Text
RSDATA!NAMA_DESA = Text5.Text
RSDATA!LUAS_TANAH = Text6.Text
RSDATA!BIAYA_PENDAFTARAN = Text7.Text
RSDATA.Update
Text2.SetFocus
Else
Command3.SetFocus
End If
Text1.SetFocus
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub
End Sub
Unload Me
End Sub
Call BERSIH1
End Sub
panjang = Len(Text1.Text)
Exit Sub
End If
RSDATA.Index = "TABPN"
Text2.SetFocus
Exit Sub
End If
Text2.Text = RSDATA!TGL_PENDAFTARAN
Text3.Text = RSDATA!NAMA_PEMOHON
Text4.Text = RSDATA!NAMA_KECAMATAN
Text5.Text = RSDATA!NAMA_DESA
Text6.Text = RSDATA!LUAS_TANAH
Text7.Text = RSDATA!BIAYA_PENDAFTARAN
Exit Sub
End Sub
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text3.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text4.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text5.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text6.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text7.SetFocus
End If
End Sub
EDIT DATA
RSDATA.Edit
RSDATA!NO_PENDAFTARAN = Text1.Text
RSDATA!TGL_PENDAFTARAN = Text2.Text
RSDATA!NAMA_PEMOHON = Text3.Text
RSDATA!NAMA_KECAMATAN = Text4.Text
RSDATA!NAMA_DESA = Text5.Text
RSDATA!LUAS_TANAH = Text6.Text
RSDATA!BIAYA_PENDAFTARAN = Text7.Text
RSDATA.Update
Text2.SetFocus
Else
Command3.SetFocus
End If
End Sub
Text1.SetFocus
End Sub
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub
Unload Me
End Sub
Call BERSIH1
End Sub
panjang = Len(Text1.Text)
Exit Sub
End If
Command1.Enabled = True
RSDATA.Index = "TABPN"
If RSDATA.NoMatch Then
Text2.SetFocus
Exit Sub
End If
Text2.Text = RSDATA!TGL_PENDAFTARAN
Text3.Text = RSDATA!NAMA_PEMOHON
Text4.Text = RSDATA!NAMA_KECAMATAN
Text5.Text = RSDATA!NAMA_DESA
Text6.Text = RSDATA!LUAS_TANAH
Text7.Text = RSDATA!BIAYA_PENDAFTARAN
Text2.SetFocus
Else
Command1.Enabled = False
Exit Sub
End If
End Sub
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text3.SetFocus
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text4.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text5.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text6.SetFocus
End If
End Sub
If KeyAscii = 13 Then
Text7.SetFocus
End If
End Sub
CARI DATA
End Sub
Call BERSIH1
End Sub
Call KONDISI
End Sub
End Sub
panjang = Len(Text1.Text)
Exit Sub
End If
RSDATA.Index = "TABPN"
If RSDATA.NoMatch Then
DATA")
Text1.Text = ""
Text1.SetFocus
Exit Sub
End If
Text2.Text = RSDATA!TGL_PENDAFTARAN
Text3.Text = RSDATA!NAMA_PEMOHON
Text4.Text = RSDATA!NAMA_KECAMATAN
Text5.Text = RSDATA!NAMA_DESA
Text6.Text = RSDATA!LUAS_TANAH
Text7.Text = RSDATA!BIAYA_PENDAFTARAN
Call BERSIH1
Text1.SetFocus
Else
Call BERSIH1
Command3.SetFocus
Exit Sub
End If
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub
Private Sub KONDISI()
Text2.Enabled = False
Text3.Enabled = False
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False
Text7.Enabled = False
Command1.Enabled = False
End Sub
Text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Text7.Enabled = True
Command1.Enabled = True
End Sub
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
HAPUS DATA
RSDATA.Delete
Call BERSIH1
Else
End If
Exit Sub
Text1.Text = ""
Text1.SetFocus
Exit Sub
End If
End Sub
Unload Me
End Sub
Call KONDISI
Text1.SetFocus
End Sub
Private Sub Form_Load()
End Sub
Text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Text7.Enabled = True
Command1.Enabled = True
End Sub
panjang = Len(Text1.Text)
Exit Sub
End If
RSDATA.Index = "TABPN"
If RSDATA.NoMatch Then
DATA")
Text1.Text = ""
Text1.SetFocus
Exit Sub
End If
Text2.Text = RSDATA!TGL_PENDAFTARAN
Text3.Text = RSDATA!NAMA_PEMOHON
Text4.Text = RSDATA!NAMA_KECAMATAN
Text5.Text = RSDATA!NAMA_DESA
Text6.Text = RSDATA!LUAS_TANAH
Text7.Text = RSDATA!BIAYA_PENDAFTARAN
Command3.SetFocus
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub
MENU ABOUT
"YUK...MARRRRIIEE!!!")
Unload Me
End If
End Sub
Text5.Text = "PENGUSAHA"
End Sub