4.5.5 Tampilan Pada Data Pemakaian Barang
Tabel 4.56 Data Pemakaian Barang Tabel 4.22 Listing Data Pemakaian Barang
Listing Program Keterangan
Text1.Text = ”B” + akhir Exit Sub
End If If akhir 10 Then
akhir = Formatakhir, ”” akhir = ”B00” + akhir
Text1.Text = akhir Exit Sub
End If Else
Text1.Text = ”B001” End If
End Sub Perintah Untuk membuat
kode
Private Sub DataGrid1_Click Text1.Text =
Adodc1.Recordset.Fields0 Text2.Text =
Adodc1.Recordset.Fields1 Text3.Text =
Adodc1.Recordset.Fields2 Text4.Text =
Adodc1.Recordset.Fields3 Text5.Text =
Adodc1.Recordset.Fields4 Text1.Enabled = False
End sub Perintah jika ingin
menambah barang
Tabel 4.23 Listing Data Pemakaian Barang Lanjutan 1
Private Sub Text13_Click If Text12.Text = Aktiv Then
Text13.Enabled = True Else
Text13.Enabled = False MsgBox Maaf status anda non_aktiv,
silahkan periksa kembali account anda End If
End Sub Perintah untuk membuka
textdengan kata sandi
Private Sub Text7_KeyPressKeyAscii As Integer
Text9.Text = ValText5.Text - ValText7.Text
End Sub Perintah untuk menghitung
Private Sub UserButtonz2_Click Adodc1.Recordset.Fields4 = Text9.Text
Adodc1.Recordset.Update Adodc1.Refresh
Adodc2.Recordset.AddNew Adodc2.Recordset.Fields0 = DTPicker1
Perintah Untuk Menyimpan
Private Sub Text6_KeyPressKeyAscii As Integer
On Error Resume Next cari888 = Text6.Text
Adodc3.CommandType = adCmdText Adodc3.RecordSource =
Adodc3.RecordSource = Select from data_pegawai where
data_pegawai.NIP = cari888 Adodc3.Refresh
Text8.Text = Adodc3.Recordset.Fields1 Text10.Text =
Adodc3.Recordset.Fields2 Text11.Text =
Adodc3.Recordset.Fields3 Text12.Text =
Adodc3.Recordset.Fields6 Text14.Text =
Adodc3.Recordset.Fields16 End Sub
Perintah untuk keluar
Adodc2.Recordset.Fields2 = Text8.Text Adodc2.Recordset.Fields3 = Text10.Text
Adodc2.Recordset.Fields4 = Text11.Text Adodc2.Recordset.Fields5 = Text12.Text
Adodc2.Recordset.Fields6 = Text2.Text Adodc2.Recordset.Fields7 = Text1.Text
Adodc2.Recordset.Fields8 = Text3.Text Adodc2.Recordset.Fields9 = Text4.Text
Adodc2.Recordset.Fields10 = Text7.Text Adodc2.Recordset.Save
Adodc2.Refresh Text1.Text =
Text2.Text = Text3.Text =
End Sub Perintah untuk Mengupdate
4.5.6 Tampilan Pada Data Pegawai