141
G
è éêè ë
4.68
ìè éíîïè ð
M
ñ ð ò
óô è éè
General Manager
ìè ê ñï
4.16 Listing P
ë õ ö
ëè é ó
ð ô
ò ÷
é è
ø ò
÷ é ñð
ò òô è é
è ö
ñðñëè ï é
è ð è
ö ñë
Listing Program Keterangan
Private Sub Command1_Click If Text1 = 123 Then
FGENERALMANAGER.Show Unload Me
Else MsgBox Password Salah
End If Text1 =
End Sub
Private Sub Command2_Click FLOGIN.Show
FGM.Hide End Sub
Private Sub Label1_Click Label1.ForeColor = QBColorRnd 15
Label1.Caption = Label1.Caption End Sub
Listing Program untuk masuk pada
bagian general manager
Listing Program perintah keluar.
FLOGIN.Show FGM.Hide
End Sub Listing Program
perintah keluar.
142
4.5.1.1 P
ùú û üý û
ü þ û ü
M
û ÿ
✁ û ü
G
û ✂ ✄û
ú
4.69
☎ û ✂ ✆✝ ✞ û
ü ✟ü✠
✁
D
û ✠ û
✡ ☛ ☞✌ ✍✎
G
û ✂ ✄û
ú
4.70
☎ û ✂ ✆✝ ✞ û
ü ✟ü✠
✁
C
ù✠ û ✁
D
û ✠ û
✡ ☛ ☞✌ ✍✎
143
✏ ✑ ✒✓ ✔
4.17 Listing P
✕✖ ✗ ✕ ✑ ✘
✙ ✚✛ ✜✢
D
✑ ✛ ✑
C
✔✣✓ ✚✛
1
Listing Program Keterangan
If Label10.Caption = TAMBAH Then Label10.Caption = SIMPAN
If Adodc1.Recordset.RecordCount = 0 Then Text1 = C001
Else Adodc1.Recordset.Sort = KODE_CLIENT
Adodc1.Recordset.MoveLast KODE = MidAdodc1.Recordset.Fields0, 3, 3
KODE = KODE + 1 If KODE 10 Then
KODE = C00 KODE Else
If KODE 100 Then KODE = C0 KODE
Else KODE = C KODE
End If End If
Text1 = KODE End If
Else Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields0 = Text1 Adodc1.Recordset.Fields1 = Text2
Adodc1.Recordset.Fields2 = Text3 Adodc1.Recordset.Fields3 = Text4
Adodc1.Recordset.Fields4 = Text5 Adodc1.Recordset.Update
Text1 = Text2 =
Text3 = Text4 =
Text5 = Label10.Caption = TAMBAH
Private Sub Picture4_Click Text1 = Adodc1.Recordset.Fields0
Text2 = Adodc1.Recordset.Fields1 Text3 = Adodc1.Recordset.Fields2
Text4 = Adodc1.Recordset.Fields3 Text5 = Adodc1.Recordset.Fields4
End Sub Listing
Program perintah
tombol tambah
Listing Program
perintah tombol
edit
Private Sub Picture5_Click With Adodc1
.Enabled = False .RecordSource =
.RecordSource = select from TABEL_DATACLIENT where KODE_CLIENT= Text6
.Enabled = True .Refresh
End With
If Adodc1.Recordset.RecordCount = 0 Then With Adodc1
.Enabled = False .RecordSource =
.RecordSource = select from TABEL_DATACLIENT where PEMESAN= Text6
.Enabled = True .Refresh
End With End If
End Sub Listing
Program perintah
tombol pencarian
144
✤ ✥ ✦✧ ★
4.18 Listing P