Tampilan Menu Utama Tampilan Kode Program
Gambar 4.105 Tampilan Login Divisi Kolam Renang
Gambar 4.106 Tampilan Login Divisi Gymnasium
Gambar 4.107 Tampilan Login Divisi Stadion Sepak Bola
Gambar 4.108 Tampilan Login Divisi Lapangan Tenis
Gambar 4.109 Tampilan Login Divisi Keuangan
Gambar 4.110 Tampilan Login Administrator
Gambar 4.111 Tampilan Ganti User dan Password
Tabel 4.24 Listing Program Ganti User dan Password
Listing Program
Keterangan
q = select from t_User where User = Text1
Adodc1.RecordSource = q Adodc1.refresh
If Adodc1.Recordset.EOF Then MsgBox Data tidak Ditemukan,
Periksa Kemali User Name Lama, vbCritical, Gagal
Text1 = Text1.SetFocus
Else Adodc1.Recordset.Fields6 = Text2
Adodc1.Recordset.Update MsgBox User Name Berhasil Diubah,
vbInformation, Berhasil Adodc1.refresh
Call hps Text1.SetFocus
End If Perintah untuk
Mengganti User dan Password
Gambar 4.112 Tampilan Profile Instansi
Gambar 4.113 Tampilan Divisi Kolam Renang
Gambar 4.114 Tampilan Transaksi Tiket Kolam Renang
Tabel 4.25 Listing Program Transaksi Tiket Kolam Renang
Listing Program Keterangan
Private Sub Cetak_Click Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields0 = Text1 Adodc1.Recordset.Fields1 = Kolam Renang
Adodc1.Recordset.Fields2 = tgl Adodc1.Recordset.Fields3 = Text2
Adodc1.Recordset.Fields4 = TKT_KolamRenang
Adodc1.Recordset.Fields5 = MDI_MenuUtama.Label5.Caption
Adodc1.Recordset.Fields6 = 1 Adodc1.Recordset.Fields7 = T
Adodc1.Recordset.Update Adodc1.refresh
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_tiket.rpt
sql1 = select from v_tiket where No_Tkt= Text1
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault Perintah untuk
menyimpan dan mencetak Tiket
Gambar 4.115 Tampilan Tiket Kolam Renang
Gambar 4.116 Tampilan Pengajuan Pemeliharaan Kolam Renang Tabel 4.26 Listing Program Pengajuan Pemeliharaan Kolam Renang
Listing Program Keterangan
Private Sub Cetak_Click Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields0 = Text1 Adodc1.Recordset.Fields1 = Pengajuan
Pemeliharaan Adodc1.Recordset.Fields2 = tgl
Adodc1.Recordset.Fields3 = Text2 Perintah untuk
Tambah
Gambar 4.117 Pengajuan Pemeliharaan Kolam Renang
Gambar 4.118 Tampilan Bagian Divisi Gymnasium
Gambar 4.119 Tampilan Sewa Gymnasium
Tabel 4.27 Listing Program Transaksi Sewa Gymnasium
Listing Program Keterangan
Adodc2.Recordset.AddNew Adodc2.Recordset.Fields0.Value =
tgl_booking Adodc2.Recordset.Fields1.Value =
daray1 Adodc2.Recordset.Fields2.Value =
daray2 Adodc2.Recordset.Fields3.Value =
daray3 Adodc2.Recordset.Fields4.Value =
daray4 Adodc2.Recordset.Fields5.Value =
daray5 Adodc2.Recordset.Fields6.Value =
daray6 Adodc2.Recordset.Fields7.Value =
daray7 Adodc2.Recordset.Fields8.Value =
daray8 Adodc2.Recordset.Fields9.Value =
daray9 Adodc2.Recordset.Fields10.Value =
daray10 Adodc2.Recordset.Fields11.Value =
daray11 Adodc2.Recordset.Fields12.Value =
daray12
Adodc2.Recordset.Update Perintah untuk
menyimpan Jadwal Gymnasium
Adodc1.Recordset.AddNew With Adodc1
Perintah untuk menyimpan Sewa
Tabel 4.28 Listing Program Transaksi Sewa Gymnasium Lanjutan 1
.Recordset.Fields0 = Text1 .Recordset.Fields1 = Text14
.Recordset.Fields2 = Text2 .Recordset.Fields3 = tgl_sewa
.Recordset.Fields5 = Text28 .Recordset.Fields4 = tgl_booking
If Text28 = Perjam Then .Recordset.Fields6 = Combo4
.Recordset.Fields7 = Combo1 ElseIf Text28 = Sehari Penuh Then
.Recordset.Fields6 = 06.00 .Recordset.Fields7 = 12
End If .Recordset.Fields8 = Text7
.Recordset.Fields9 = Text4 .Recordset.Fields10 = Text8
.Recordset.Fields11 = Text13 .Recordset.Fields12 =
MDI_MenuUtama.Label5 .Recordset.Fields13 = T
End With Adodc1.Recordset.Update
MsgBox Data Telah Tersimpan, vbInformation, Simpan
Gymnasium
Adodc1.refresh Adodc1.Recordset.Fields1 = Text14
Adodc1.Recordset.Fields2 = Text2 Adodc1.Recordset.Fields3 = tgl_sewa
Adodc1.Recordset.Fields5 = Text28 Adodc1.Recordset.Fields4 = tgl_booking
If Text28 = Perjam Then Adodc1.Recordset.Fields6 = Combo4
Adodc1.Recordset.Fields7 = Combo1 ElseIf Text28 = Sehari Penuh Then
Adodc1.Recordset.Fields6 = 06.00 Adodc1.Recordset.Fields7 = 12
End If Adodc1.Recordset.Fields8 = Text7
Adodc1.Recordset.Fields9 = Text4 Adodc1.Recordset.Fields10 = Text8
Adodc1.Recordset.Fields11 = Text13 Adodc1.Recordset.Fields12 =
MDI_MenuUtama.Label5 Adodc1.Recordset.Fields13 = T
Adodc1.Recordset.Update MsgBox Data Telah Diubah, vbInformation,
Simpan Adodc1.refresh
Perintah untuk Ubah Sewa Gymnasium
Private Sub Cetak_Click Screen.MousePointer = vbHourglass
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_Tunai_
Gymnasium.rpt sql1 = select from
Perintah untuk Cetak Sewa
Gymnasium
Tabel 4.29 Listing Program Transaksi Sewa Gymnasium Lanjutan 2
v_sewapelunasan where Kode_booking= DataCombo2
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault End Sub
Gambar 4.120 Tampilan Bagian Divisi Stadion Sepak Bola
Gambar 4.121 Tampilan Transaksi Tiket Track Lari
Tabel 4.30 Listing Program Transaksi Tiket Track Lari
Listing Program Keterangan
Private Sub Cetak_Click Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields0 = Text1 Adodc1.Recordset.Fields1 = Track Lari
Adodc1.Recordset.Fields2 = tgl Adodc1.Recordset.Fields3 = Text2
Adodc1.Recordset.Update Adodc1.refresh
Perintah untuk menyimpan dan
mencetak Tiket
Adodc1.Recordset.Fields4 = TKT_KolamRenang
Adodc1.Recordset.Fields5 = MDI_MenuUtama.Label5.Caption
Adodc1.Recordset.Fields6 = 1 Adodc1.Recordset.Fields7 = T
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_tiket.rpt
sql1 = select from v_tiket where No_Tkt= Text1
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault
Gambar 4.122 Tampilan Tiket Track Lari
Gambar 4.123 Tampilan Transaksi Sewa Stadion Sepak Bola
Tabel 4.31 Listing Program Transaksi Sewa Stadion Sepak Bola
Listing Program Keterangan
Adodc2.Recordset.AddNew Adodc2.Recordset.Fields0.Value =
tgl_booking Adodc2.Recordset.Fields1.Value =
daray1 Perintah untuk
menyimpan Jadwal Stadion Sepak bola
Tabel 4.32 Listing Program Transaksi Sewa Stadion Sepak Bola Lanjutan 1
Adodc2.Recordset.Fields2.Value = daray2 Adodc2.Recordset.Fields3.Value =
daray3 Adodc2.Recordset.Fields4.Value =
daray4 Adodc2.Recordset.Fields5.Value =
daray5 Adodc2.Recordset.Fields6.Value =
daray6 Adodc2.Recordset.Fields7.Value =
daray7 Adodc2.Recordset.Fields8.Value =
daray8 Adodc2.Recordset.Fields9.Value =
daray9 Adodc2.Recordset.Fields10.Value =
daray10 Adodc2.Recordset.Fields11.Value =
daray11 Adodc2.Recordset.Fields12.Value =
daray12 Adodc2.Recordset.Update
Adodc1.Recordset.AddNew With Adodc1
.Recordset.Fields0 = Text1 .Recordset.Fields1 = Text14
.Recordset.Fields2 = Text2 .Recordset.Fields3 = tgl_sewa
.Recordset.Fields5 = Text28 .Recordset.Fields4 = tgl_booking
If Text28 = Perjam Then .Recordset.Fields6 = Combo4
.Recordset.Fields7 = Combo1 ElseIf Text28 = Sehari Penuh Then
.Recordset.Fields6 = 06.00 .Recordset.Fields7 = 12
End If .Recordset.Fields8 = Text7
.Recordset.Fields9 = Text4 .Recordset.Fields10 = Text8
.Recordset.Fields11 = Text13 .Recordset.Fields12 =
MDI_MenuUtama.Label5 .Recordset.Fields13 = T
End With Adodc1.Recordset.Update
MsgBox Data Telah Tersimpan, vbInformation, Simpan
Adodc1.refresh Perintah untuk
menyimpan Sewa Stadion Sepak bola
Adodc1.Recordset.Fields1 = Text14 Adodc1.Recordset.Fields2 = Text2
Adodc1.Recordset.Fields3 = tgl_sewa Adodc1.Recordset.Fields5 = Text28
Adodc1.Recordset.Fields4 = tgl_booking If Text28 = Perjam Then
Perintah untuk Ubah Sewa Stadion Sepak
bola
Tabel 4.33 Listing Program Transaksi Sewa Stadion Sepak Bola Lanjutan 2
Adodc1.Recordset.Fields6 = Combo4 Adodc1.Recordset.Fields7 = Combo1
ElseIf Text28 = Sehari Penuh Then Adodc1.Recordset.Fields6 = 06.00
Adodc1.Recordset.Fields7 = 12 End If
Adodc1.Recordset.Fields8 = Text7 Adodc1.Recordset.Fields9 = Text4
Adodc1.Recordset.Fields10 = Text8 Adodc1.Recordset.Fields11 = Text13
Adodc1.Recordset.Fields12 = MDI_MenuUtama.Label5
Adodc1.Recordset.Fields13 = T Adodc1.Recordset.Update
MsgBox Data Telah Diubah, vbInformation, Simpan
Adodc1.refresh
Private Sub Cetak_Click Screen.MousePointer = vbHourglass
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_Tunai_stadion.rpt
Perintah untuk Cetak Sewa Stadion
Sepak bola
sql1 = select from v_sewapelunasan where Kode_booking=
DataCombo2 .SQLQuery = sql1
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
End Sub
Gambar 4.124 Bukti Pembayaran Stadion Sepak Bola
Tabel 4.34 Listing Program Bukti Pembayaran Stadion Sepak Bola
Listing Program Keterangan
Screen.MousePointer = vbHourglass Dim sql As String
With Cr3 .ReportFileName = App.Path
\Laporan\L_sewa_ssb.rpt sql = select from
v_sewa_stadion .SQLQuery = sql
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
Perintah Tombol Cetak
Gambar 4.125 Tampilan Perkuliahan Stadion Sepak Bola
Tabel 4.35 Listing Program Perkuliahan Stadion Sepak Bola
Listing Program Keterangan
Adodc4.Recordset.AddNew With Adodc4
.Recordset.Fields0 = Text34 .Recordset.Fields1 = daftar
.Recordset.Fields2 = awal .Recordset.Fields3 = akhir
.Recordset.Fields4 = Text40 .Recordset.Fields5 = Text35
.Recordset.Fields6 = Text12 .Recordset.Fields7 = Combo3
.Recordset.Fields8 = Combo2 .Recordset.Fields9 = Text39
.Recordset.Fields10 = MDI_MenuUtama.Label5
End With Adodc4.Recordset.Update
MsgBox Data Telah Tersimpan, vbInformation, Simpan
Adodc4.refresh Perintah untuk
Simpan Perkuliahan Stadion Sepak bola
With Adodc4 .Recordset.Fields0 = Text34
.Recordset.Fields1 = daftar .Recordset.Fields2 = awal
.Recordset.Fields3 = akhir .Recordset.Fields4 = Text40
.Recordset.Fields5 = Text35 .Recordset.Fields6 = Text12
.Recordset.Fields7 = Combo3 .Recordset.Fields8 = Combo2
.Recordset.Fields9 = Text39 Perintah untuk Ubah
Perkuliahan Stadion Sepak bola
Tabel 4.36 Listing Program Perkuliahan Stadion Sepak Bola Lanjutan 1
MDI_MenuUtama.Label5 End With
Adodc4.Recordset.Update MsgBox Data Telah Diubah, vbInformation,
Ubah Adodc4.refres
Private Sub Command1_Click If Option13.Value = True Then
Screen.MousePointer = vbHourglass Dim sql1 As String
With Cr3 .ReportFileName = App.Path
\Laporan\L_BUKTI_perkuliahan_ssb.rpt sql1 = select from
v_perkuliahan_stadion where Kode_perkuliahan= DataCombo3
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault ElseIf Option12.Value = True Then
Screen.MousePointer = vbHourglass Dim sql As String
With Cr3 .ReportFileName = App.Path
\Laporan\L_perkuliahan_ssb.rpt sql = select from
v_perkuliahan_stadion .SQLQuery = sql
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
End If End Sub
Perintah untuk Cetak Perkuliahan
Stadion Sepak bola
Gambar 4.126 Tampilan Transaksi Pelunasan Sewa Stadion Sepak Bola
Tabel 4.37 Listing Program Transaksi Pelunasan Sewa Stadion Sepak Bola
Listing Program
Keterangan
With Adodc5.Recordset .AddNew
.Fields0 = Text20 .Fields1 = tgl_pelunasan
.Fields2 = Text19 .Fields3 = tgl_B
.Fields4 = Text18 .Fields6 = Text30
.Fields5 = ValText18 + ValText30 .Fields7 = Pelunasan Stadion Sepak
Bola .Update
End With Adodc5.refresh
Perintah untuk Simpan Pelunasan
Sewa Stadion Sepak bola
Private Sub cmdControl2_Click If Option6.Value = True Then
Screen.MousePointer = vbHourglass Dim sql1 As String
With Cr1 .ReportFileName = App.Path
\Laporan\L_Bukti_Pelunasan.rpt sql1 = select from
v_Lunas_Stadion where Bukti_Pelunasan= DataCombo1
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault End If
End Sub Perintah untuk
Cetak Pelunasan Sewa Stadion Sepak
bola
Gambar 4.127 Tampilan Jadwal Stadion Sepak Bola
Tabel 4.38 Listing Program Jadwal Stadion Sepak Bola
Listing Program
Keterangan
Adodc2.Recordset.AddNew Adodc2.Recordset.Fields0.Value =
tgl_booking Adodc2.Recordset.Fields1.Value =
daray1 Adodc2.Recordset.Fields2.Value =
daray2 Adodc2.Recordset.Fields3.Value =
daray3 Adodc2.Recordset.Fields4.Value =
daray4 Adodc2.Recordset.Fields5.Value =
daray5 Adodc2.Recordset.Fields6.Value =
daray6 Adodc2.Recordset.Fields7.Value =
daray7 Adodc2.Recordset.Fields8.Value =
daray8 Adodc2.Recordset.Fields9.Value =
daray9 Adodc2.Recordset.Fields10.Value =
daray10 Adodc2.Recordset.Fields11.Value =
daray11 Adodc2.Recordset.Fields12.Value =
daray12
Adodc2.Recordset.Update Perintah untuk
menyimpan Jadwal Stadion Sepak bola
Tabel 4.39 Listing Program Jadwal Stadion Sepak Bola Lanjutan 1
Screen.MousePointer = vbHourglass
Dim sql1 As String With Cr1
.ReportFileName = App.Path
\Laporan\L_Booking_Stadion.rpt sql1 = select from
v_booking where tahun = FormatDTPicker3, yyyy
and bulan = FormatDTPicker3, mm
.SQLQuery = sql1 .WindowState =
crptMaximized .Destination =
crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault Perintah untuk Cetak Jadwal
Stadion Sepak bola
Gambar 4.128 Tampilan Bagian Divisi Lapangan Tenis
Gambar 4.129 Tampilan Transaksi Sewa Lapangan Tenis
Tabel 4.40 Listing Program Transaksi Sewa Lapangan Tenis
Listing Program Keterangan
Adodc2.Recordset.AddNew Adodc2.Recordset.Fields0.Value =
tgl_booking Adodc2.Recordset.Fields1.Value =
daray1 Adodc2.Recordset.Fields2.Value =
daray2 Adodc2.Recordset.Fields3.Value =
daray3 Adodc2.Recordset.Fields4.Value =
daray4 Adodc2.Recordset.Fields5.Value =
daray5 Adodc2.Recordset.Fields6.Value =
daray6 Adodc2.Recordset.Fields7.Value =
daray7 Adodc2.Recordset.Fields8.Value =
daray8 Adodc2.Recordset.Fields9.Value =
daray9 Adodc2.Recordset.Fields10.Value =
daray10 Adodc2.Recordset.Fields11.Value =
daray11 Adodc2.Recordset.Fields12.Value =
daray12
Adodc2.Recordset.Update Perintah untuk
menyimpan Jadwal Lapangan Tenis
Tabel 4.41 Listing Program Transaksi Sewa Lapangan Tenis Lanjutan 1
Adodc1.Recordset.AddNew With Adodc1
.Recordset.Fields0 = Text1 .Recordset.Fields1 = Text14
.Recordset.Fields2 = Text2 .Recordset.Fields3 = tgl_sewa
.Recordset.Fields5 = Text28 .Recordset.Fields4 = tgl_booking
If Text28 = Perjam Then .Recordset.Fields6 = Combo4
.Recordset.Fields7 = Combo1 ElseIf Text28 = Sehari Penuh Then
.Recordset.Fields6 = 06.00 .Recordset.Fields7 = 12
End If .Recordset.Fields8 = Text7
.Recordset.Fields9 = Text4 .Recordset.Fields10 = Text8
.Recordset.Fields11 = Text13 .Recordset.Fields12 =
MDI_MenuUtama.Label5 .Recordset.Fields13 = T
End With Adodc1.Recordset.Update
MsgBox Data Telah Tersimpan, vbInformation, Simpan
Adodc1.refresh Perintah untuk
menyimpan Sewa Lapangan Tenis
Adodc1.Recordset.Fields1 = Text14 Adodc1.Recordset.Fields2 = Text2
Adodc1.Recordset.Fields3 = tgl_sewa Adodc1.Recordset.Fields5 = Text28
Adodc1.Recordset.Fields4 = tgl_booking If Text28 = Perjam Then
Adodc1.Recordset.Fields6 = Combo4 Adodc1.Recordset.Fields7 = Combo1
ElseIf Text28 = Sehari Penuh Then Adodc1.Recordset.Fields6 = 06.00
Adodc1.Recordset.Fields7 = 12 End If
Adodc1.Recordset.Fields8 = Text7 Adodc1.Recordset.Fields9 = Text4
Adodc1.Recordset.Fields10 = Text8 Adodc1.Recordset.Fields11 = Text13
Adodc1.Recordset.Fields12 = MDI_MenuUtama.Label5
Adodc1.Recordset.Fields13 = T Adodc1.Recordset.Update
MsgBox Data Telah Diubah, vbInformation, Simpan
Adodc1.refresh Perintah untuk Ubah
Sewa Lapangan Tenis
Tabel 4.42 Listing Program Transaksi Sewa Lapangan Tenis Lanjutan 2
Private Sub Cetak_Click Screen.MousePointer = vbHourglass
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_Tunai_stadion.rpt
sql1 = select from v_sewapelunasan where Kode_booking=
DataCombo2 .SQLQuery = sql1
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
End Sub Perintah untuk
Cetak Sewa Lapangan Tenis
Gambar 4.130 Transaksti Perkuliahan Lapangan Tenis
Tabel 4.43 Listing Program Perkuliahan Lapangan Tenis
Listing Program Keterangan
Adodc4.Recordset.AddNew With Adodc4
.Recordset.Fields0 = Text34 .Recordset.Fields1 = daftar
.Recordset.Fields2 = awal .Recordset.Fields3 = akhir
.Recordset.Fields4 = Text40 .Recordset.Fields5 = Text35
Perintah untuk Simpan
Perkuliahan Lapangan Tenis
Tabel 4.44 Listing Program Perkuliahan Lapangan Tenis Lanjutan 1
.Recordset.Fields6 = Text12 .Recordset.Fields7 = Combo3
MDI_MenuUtama.Label5 End With
Adodc4.Recordset.Update MsgBox Data Telah Tersimpan, vbInformation,
Simpan Adodc4.refresh
With Adodc4 .Recordset.Fields0 = Text34
.Recordset.Fields1 = daftar .Recordset.Fields2 = awal
.Recordset.Fields3 = akhir .Recordset.Fields4 = Text40
.Recordset.Fields5 = Text35 .Recordset.Fields6 = Text12
MDI_MenuUtama.Label5 End With
Adodc4.Recordset.Update MsgBox Data Telah Diubah, vbInformation,
Adodc4.refres Perintah untuk
Ubah Perkuliahan
Lapangan Tenis
Private Sub Command1_Click If Option13.Value = True Then
Screen.MousePointer = vbHourglass Dim sql1 As String
With Cr3 .ReportFileName = App.Path
\Laporan\L_BUKTI_perkuliahan_ssb.rpt sql1 = select from
v_perkuliahan_stadion where Kode_perkuliahan= DataCombo3
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault ElseIf Option12.Value = True Then
Screen.MousePointer = vbHourglass Dim sql As String
With Cr3 .ReportFileName = App.Path
\Laporan\L_perkuliahan_ssb.rpt sql = select from
v_perkuliahan_stadion .SQLQuery = sql
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
End If End Sub
Perintah untuk Cetak
Perkuliahan Lapangan Tenis
Gambar 4.131 Transaksi Pelunasan Sewa Lapangan Tenis
Tabel 4.45 Listing Program Transaksi Pelunasan Sewa Lapangan Tenis
Listing Program Keterangan
With Adodc5.Recordset .AddNew
.Fields0 = Text20 .Fields1 = tgl_pelunasan
.Fields2 = Text19 .Fields3 = tgl_B
.Fields4 = Text18 .Fields6 = Text30
.Update End With
MsgBox Lunas, vbInformation, Pembayaran Adodc5.refresh
Perintah untuk Simpan Pelunasan
Sewa Lapangan Tenis
Private Sub cmdControl2_Click If Option6.Value = True Then
Screen.MousePointer = vbHourglass Dim sql1 As String
With Cr1 .ReportFileName = App.Path
\Laporan\L_Bukti_Pelunasan.rpt sql1 = select from
v_Lunas_Stadion where Bukti_Pelunasan= DataCombo1
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault End If
End Sub Perintah untuk
Cetak Pelunasan Sewa Lapangan Tenis
Gambar 4.132 Jadwal Lapangan Tenis
Tabel 4.46 Listing Program Jadwal Lapangan Tenis
Listing Program Keterangan
Adodc2.Recordset.AddNew Adodc2.Recordset.Fields0.Value =
tgl_booking Adodc2.Recordset.Fields1.Value =
daray1 Adodc2.Recordset.Fields2.Value =
daray2 Adodc2.Recordset.Fields3.Value =
daray3 Adodc2.Recordset.Fields4.Value =
daray4 Adodc2.Recordset.Fields5.Value =
daray5 Adodc2.Recordset.Fields6.Value =
daray6 Adodc2.Recordset.Fields7.Value =
daray7 Adodc2.Recordset.Fields8.Value =
daray8 Adodc2.Recordset.Fields9.Value =
daray9 Adodc2.Recordset.Fields10.Value =
daray10 Adodc2.Recordset.Fields11.Value =
daray11 Adodc2.Recordset.Fields12.Value =
daray12
Adodc2.Recordset.Update Perintah untuk
menyimpan Jadwal Lapangan Tenis
Tabel 4.47 Listing Program Jadwal Lapangan Tenis Lanjutan 1
Screen.MousePointer = vbHourglass Dim sql1 As String
With Cr1 .ReportFileName = App.Path
\Laporan\L_Booking_Stadion.rpt sql1 = select from v_booking
where tahun = FormatDTPicker3, yyyy and bulan =
FormatDTPicker3, mm .SQLQuery = sql1
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
Perintah untuk Cetak Jadwal
Lapangan Tenis
Gambar 4.133 Transaksi Sewa Gymnasium
Tabel 4.48 Listing Program Transaksi Sewa Gymnasium
Listing Program Keterangan
Adodc2.Recordset.AddNew Adodc2.Recordset.Fields0.Value =
tgl_booking Adodc2.Recordset.Fields1.Value =
daray1 Adodc2.Recordset.Fields2.Value =
daray2 Adodc2.Recordset.Fields3.Value =
daray3 Perintah untuk
menyimpan Jadwal Gymnasium
Tabel 4.49 Listing Program Transaksi Sewa Gymnasium Lanjutan 1
Adodc2.Recordset.Fields4.Value = daray4 Adodc2.Recordset.Fields5.Value =
daray5 Adodc2.Recordset.Fields6.Value =
daray6 Adodc2.Recordset.Fields7.Value =
daray7 Adodc2.Recordset.Fields8.Value =
daray8 Adodc2.Recordset.Fields9.Value =
daray9 Adodc2.Recordset.Fields10.Value =
daray10 Adodc2.Recordset.Fields11.Value =
daray11 Adodc2.Recordset.Fields12.Value =
daray12 Adodc2.Recordset.Update
Adodc1.Recordset.AddNew With Adodc1
.Recordset.Fields0 = Text1 .Recordset.Fields1 = Text14
.Recordset.Fields2 = Text2 .Recordset.Fields3 = tgl_sewa
.Recordset.Fields5 = Text28 .Recordset.Fields4 = tgl_booking
If Text28 = Perjam Then .Recordset.Fields6 = Combo4
.Recordset.Fields7 = Combo1 ElseIf Text28 = Sehari Penuh Then
.Recordset.Fields6 = 06.00 .Recordset.Fields7 = 12
End If .Recordset.Fields8 = Text7
.Recordset.Fields9 = Text4 .Recordset.Fields10 = Text8
.Recordset.Fields11 = Text13 .Recordset.Fields12 =
MDI_MenuUtama.Label5 .Recordset.Fields13 = T
End With Adodc1.Recordset.Update
MsgBox Data Telah Tersimpan, vbInformation, Simpan
Adodc1.refresh Perintah untuk
menyimpan Sewa Gymnasium
Adodc1.Recordset.Fields1 = Text14 Adodc1.Recordset.Fields2 = Text2
Adodc1.Recordset.Fields3 = tgl_sewa Adodc1.Recordset.Fields5 = Text28
Adodc1.Recordset.Fields4 = tgl_booking If Text28 = Perjam Then
Adodc1.Recordset.Fields6 = Combo4 Adodc1.Recordset.Fields7 = Combo1
ElseIf Text28 = Sehari Penuh Then Adodc1.Recordset.Fields6 = 06.00
Perintah untuk Ubah Sewa Gymnasium
Tabel 4.50 Listing Program Transaksi Sewa Gymnasium Lanjutan 2
Adodc1.Recordset.Fields7 = 12 End If
Adodc1.Recordset.Fields8 = Text7 Adodc1.Recordset.Fields9 = Text4
Adodc1.Recordset.Fields10 = Text8 Adodc1.Recordset.Fields11 = Text13
Adodc1.Recordset.Fields12 = MDI_MenuUtama.Label5
Adodc1.Recordset.Fields13 = T Adodc1.Recordset.Update
MsgBox Data Telah Diubah, vbInformation, Simpan
Adodc1.refresh
Private Sub Cetak_Click Screen.MousePointer = vbHourglass
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_Tunai_stadion.rpt
sql1 = select from v_sewapelunasan where Kode_booking=
DataCombo2 .SQLQuery = sql1
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
End Sub Perintah untuk
Cetak Sewa Gymnasium
Gambar 4.134 Transaksi Perkuliahan Gymnasium
Tabel 4.51 Listing Program Perkuliahan Gymnasium
Listing Program Keterangan
Adodc4.Recordset.AddNew With Adodc4
.Recordset.Fields0 = Text34 .Recordset.Fields1 = daftar
.Recordset.Fields2 = awal .Recordset.Fields3 = akhir
.Recordset.Fields4 = Text40 .Recordset.Fields5 = Text35
.Recordset.Fields6 = Text12 .Recordset.Fields7 = Combo3
.Recordset.Fields8 = Combo2 .Recordset.Fields9 = Text39
.Recordset.Fields10 = MDI_MenuUtama.Label5
End With Adodc4.Recordset.Update
MsgBox Data Telah Tersimpan, vbInformation, Simpan
Adodc4.refresh Perintah untuk
Simpan Perkuliahan Gymnasium
With Adodc4 .Recordset.Fields0 = Text34
.Recordset.Fields1 = daftar .Recordset.Fields2 = awal
.Recordset.Fields3 = akhir .Recordset.Fields4 = Text40
.Recordset.Fields5 = Text35 .Recordset.Fields6 = Text12
.Recordset.Fields7 = Combo3 .Recordset.Fields8 = Combo2
.Recordset.Fields9 = Text39
.Recordset.Fields10 = MDI_MenuUtama.Label5
End With Adodc4.Recordset.Update
MsgBox Data Telah Diubah, vbInformation, Ubah
Adodc4.refres Perintah untuk Ubah
Perkuliahan Gymnasium
Private Sub Command1_Click If Option13.Value = True Then
Screen.MousePointer = vbHourglass Dim sql1 As String
With Cr3 .ReportFileName = App.Path
\Laporan\L_BUKTI_perkuliahan_ssb.rpt sql1 = select from
v_perkuliahan_stadion where Kode_perkuliahan= DataCombo3
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault Perintah untuk
Cetak Perkuliahan Gymnasium
Tabel 4.52 Listing Program Perkuliahan Gymnasium Lanjutan 1
ElseIf Option12.Value = True Then Screen.MousePointer = vbHourglass
Dim sql As String With Cr3
.ReportFileName = App.Path \Laporan\L_perkuliahan_ssb.rpt
sql = select from v_perkuliahan_stadion
.SQLQuery = sql .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault End If
End Sub
Gambar 4.135 Transaksi Pelunasan Sewa Gymnasium
Tabel 4.53 Listing Program Transaksi Pelunasan Sewa Gymnasium
Listing Program Keterangan
With Adodc5.Recordset .AddNew
.Fields0 = Text20 .Fields1 = tgl_pelunasan
.Fields2 = Text19 .Fields3 = tgl_B
.Fields4 = Text18 Perintah untuk
Simpan Pelunasan Sewa Gymnasium
Tabel 4.54 Listing Program Transaksi Pelunasan Sewa Gymnasium Lanjutan 1
.Fields6 = Text30 .Fields5 = ValText18 + ValText30
.Fields7 = Pelunasan Stadion Sepak Bola
.Update End With
MsgBox Lunas, vbInformation, Pembayaran Adodc5.refresh
Private Sub cmdControl2_Click If Option6.Value = True Then
Screen.MousePointer = vbHourglass Dim sql1 As String
With Cr1 .ReportFileName = App.Path
\Laporan\L_Bukti_Pelunasan.rpt sql1 = select from
v_Lunas_Stadion where Bukti_Pelunasan= DataCombo1
.SQLQuery = sql1 .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault End If
End Sub Perintah untuk
Cetak Pelunasan Sewa Gymnasium
Gambar 4.136 Jadwal Gymnasium
Tabel 4.55 Listing Program Jadwal Gymnasium
Listing Program Keterangan
Adodc2.Recordset.AddNew Adodc2.Recordset.Fields0.Value =
tgl_booking Adodc2.Recordset.Fields1.Value =
daray1 Adodc2.Recordset.Fields2.Value =
daray2 Adodc2.Recordset.Fields3.Value =
daray3 Adodc2.Recordset.Fields4.Value =
daray4 Adodc2.Recordset.Fields5.Value =
daray5 Adodc2.Recordset.Fields6.Value =
daray6 Adodc2.Recordset.Fields7.Value =
daray7 Adodc2.Recordset.Fields8.Value =
daray8 Adodc2.Recordset.Fields9.Value =
daray9 Adodc2.Recordset.Fields10.Value =
daray10 Adodc2.Recordset.Fields11.Value =
daray11 Adodc2.Recordset.Fields12.Value =
daray12
Adodc2.Recordset.Update Perintah untuk
menyimpan Jadwal Gymnasium
Screen.MousePointer = vbHourglass Dim sql1 As String
With Cr1 .ReportFileName = App.Path
\Laporan\L_Booking_Stadion.rpt sql1 = select from v_booking
where tahun = FormatDTPicker3, yyyy and bulan =
FormatDTPicker3, mm .SQLQuery = sql1
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
Perintah untuk Cetak Jadwal
Gymnasium
Gambar 4.137 Laporan Pendapatan Kolam Renang
Tabel 4.56 Listing Laporan Pendapatan Kolam Renang
Listing Program Keterangan
Adodc3.Recordset.AddNew Adodc3.Recordset.Fields0 = Text3
Adodc3.Recordset.Fields1 = tgl Adodc3.Recordset.Fields2 = Stadion Sepak
Bola Adodc3.Recordset.Fields3 = Text1
Adodc3.Recordset.Fields4 = Text6 Adodc3.Recordset.Fields5 = Text8
Adodc3.Recordset.Fields6 = Text7 Adodc3.Recordset.Fields7 = Text9
Adodc3.Recordset.Fields8 = Text10 Adodc3.Recordset.Fields9 = B
Adodc3.Recordset.Fields10 = MDI_MenuUtama.Label5.Caption
Adodc3.Recordset.Fields11 = Text5 Adodc3.Recordset.Fields12 = Text4
Adodc3.Recordset.Update MsgBox data telah tersimpan
Adodc3.refresh Perintah Laporkan
Unload Me Keluar
Gambar 4.138 Laporan Pendapatan Kolam Renang
Gambar 4.139 Tampilan Bagian Keuangan
Gambar 4.140 Data Karyawan
Gambar 4.141 Laporan Data Karyawan
Gambar 4.142 Belanja Gelanggang Olahraga
Tabel 4.57 Listing Belanja Gelanggang Olahraga
Listing Program
Keterangan
Adodc1.Recordset.AddNew Adodc1.Recordset.Fields0 = Kode
Adodc1.Recordset.Fields1 = Text6 Adodc1.Recordset.Fields2 = Keuangan
Adodc1.Recordset.Fields3 = tgl Adodc1.Recordset.Fields4 = DataCombo1
Adodc1.Recordset.Fields5 = Text4 Adodc1.Recordset.Fields6 = Text3
Adodc1.Recordset.Fields7 = MDI_MenuUtama.Label5
Adodc1.Recordset.Update MsgBox Transaksi Tersimpan,
vbInformation, Simpan Adodc1.refresh
Jurnal Adodc2.Recordset.AddNew
Adodc2.Recordset.Fields0 = tgl Adodc2.Recordset.Fields1 = Kode
Adodc2.Recordset.Fields2 = Text8 Adodc2.Recordset.Fields3 = Text3
Adodc2.Recordset.Fields4 = 0 Adodc2.Recordset.Fields5 = 4.1.01.01
Adodc2.Recordset.Fields6 = 0 Adodc2.Recordset.Fields7 = Text3
Adodc2.Recordset.Update Adodc2.refresh
Bukti Call hps
Perintah untuk Simpan
Unload Me Perintah untuk
Keluar
Gambar 4.143 Data Gaji Karyawan
Tabel 4.58 Listing Data Gaji Karyawan
Listing Program Keterangan
If Adodc1.Recordset.EOF Then MsgBox Data Kosong, vbCritical,
Hapus ElseIf MsgBoxApakah kamu ingi
menghapusnya, vbYesNo + vbDefaultButton2 + vbQuestion, App.ProductName = vbYes Then
Adodc1.Recordset.Delete MsgBox Data telah terhapus,
vbCritical, Hapus Adodc1.refresh
Call hps Text8.SetFocus
Call Kode Call rubah
End If Perintah untuk
Hapus
q = select from t_gaji where No_gaji
like Text9 or Nih_Nip like Text8
Adodc1.RecordSource = q Adodc1.refresh
If Adodc1.Recordset.EOF Then Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields0 = Text9 Adodc1.Recordset.Fields1 = tgl
Adodc1.Recordset.Fields2 = Text8 Adodc1.Recordset.Fields3 = Text2
Adodc1.Recordset.Fields4 = Text7 Adodc1.Recordset.Fields5 = Text4
Perintah untuk Simpan
Tabel 4.59 Listing Data Gaji Karyawan Lanjutan1
Adodc1.Recordset.Fields6 = T Adodc1.Recordset.Fields7 = 2.1.2.1
Adodc1.Recordset.Update MsgBox Data telah tersimpan,
vbInformation, Keteranga Adodc1.refresh
Call Kode Else
MsgBox Sudah ada, vbCritical, Keteranga
End If
Gambar 4.144 Tampilan Jurnal Umum Tabel 4.60 Listing Jurnal Umum
Listing Program
Keterangan
If Combo1 = Perbulan Then Screen.MousePointer = vbHourglass
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_Jurnal.rpt
sql1 = select from v_jurnal where Bulan = Formattanggal,
mm and tahun = Formattanggal, yyyy
MsgBox sql1 .SQLQuery = sql1
.WindowState = crptMaximized .Destination = crptToWindow
.RetrieveDataFiles Perintah untuk
Cetak
Tabel 4.61 Listing Jurnal Umum Lanjutan 1
.Action = 1 End With
Screen.MousePointer = vbDefault ElseIf Combo1 = Pertahun Then
Screen.MousePointer = vbHourglass Dim sql As String
With Cr1 .ReportFileName = App.Path
\Laporan\L_Jurnal_Tahun.rpt sql = select from v_jurnal
where tahun = Formattanggal, yyyy MsgBox sql
.SQLQuery = sql .WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
.Action = 1 End With
Screen.MousePointer = vbDefault End If
Gambar 4.145 Jurnal Umum
Gambar 4.146 Tampilan Buku Besar Umum
Tabel 4.62 Listing Buku Besar Umum
Listing Program Keterangan
Saldo---------------------------------- If Combo1.ListIndex = 0 Then
q = select from t_saldo where tgl = Text1 - Combo2.ListIndex + 1
-1 Adodc1.RecordSource = q
Adodc1.refresh If Adodc1.Recordset.EOF Then
Saldo = 0 Else
Saldo = Adodc1.Recordset.Fields1 End If
Else q = select from t_saldo where tgl =
Text4 - 1 -1 Adodc1.RecordSource = q
Adodc1.refresh If Adodc1.Recordset.EOF Then
Saldo = 0 Else
Saldo = Adodc1.Recordset.Fields1 End If
End If If Combo1 = Perbulan Then
If DataCombo1 = Kas Then Screen.MousePointer = vbHourglass
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_bbu_Kas.rpt
Perintah untuk Cetak
Tabel 4.63 Listing Buku Besar Umum Lanjutan 1
sql1 = select from v_bbu_ok where No_RL= Text2 and
Bulan = Combo2.ListIndex + 1 and tahun = Text1
.SQLQuery = sql1 .ParameterFields0 =
saldo ; Saldo ;1 .WindowState =
crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
Else Screen.MousePointer = vbHourglass
Dim sql2 As String With Cr1
.ReportFileName = App.Path \Laporan\L_bbu.rpt
sql2 = select from v_bbu_ok where No_RL= Text2 and
Bulan = Combo2.ListIndex + 1 and tahun = Text1
.SQLQuery = sql2 .WindowState =
crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
End If ElseIf Combo1 = Pertahun Then
If DataCombo2 = Kas Then Screen.MousePointer = vbHourglass
Dim sql3 As String With Cr1
.ReportFileName = App.Path \Laporan\L_bbu_Kas_Tahun.rpt
sql3 = select from v_bbu_ok where No_RL= Text3 and
tahun = Text4 .SQLQuery = sql3
.ParameterFields0 = saldo ; Saldo ;1
.WindowState = crptMaximized
.Destination = crptToWindow .RetrieveDataFiles
Tabel 4.64 Listing Buku Besar Umum Lanjutan 2
.Action = 1 End With
Screen.MousePointer = vbDefault Else
Screen.MousePointer = vbHourglass Dim sql4 As String
With Cr1 .ReportFileName = App.Path
\Laporan\L_bbu_Tahun.rpt sql4 = select from
v_bbu_ok where No_RL= Text3 and tahun = Text4
.SQLQuery = sql4 .WindowState =
crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
End If End If
Gambar 4.147 Buku Besar Umum Pada Kas
Gambar 4.148 Buku Besar Umum Pada Biaya Modal Peralatan Kantor
Gambar 4.149 Buku Besar Umum Pada Biaya Makan dan Minum
Gambar 4.150 Buku Besar Umum Pada Biaya Telepon
Gambar 4.151 Buku Besar Umum Pada Biaya Honorarium
Gambar 4.152 Buku Besar Umum Pada Potongan Harga
Gambar 4.153 Buku Besar Umum Pada Pendapatan Event Organizer
Gambar 4.154 Buku Besar Umum Pada Pendapatan Lapangan Tenis
Gambar 4.155 Buku Besar Umum Pada Pendapatan Gedung Gymnasium
Gambar 4.156 Buku Besar Umum Pada Pendapatan Lapangan Softball
Gambar 4.157 Buku Besar Umum Pada Pendapatan Kolam Renang
Gambar 4.158 Buku Besar Umum Pada Pendapatan Stadion Sepak Bola
Gambar 4.159 Buku Besar Umum Pada Bantuan Keuangan Dari UPI
Gambar 4.160 Buku Besar Umum Pada Biaya Air
Gambar 4.161 Buku Besar Umum Pada Biaya Listrik
Gambar 4.162 Buku Besar Umum Pada Biaya Lembur
Gambar 4.163 Buku Besar Umum Pada Biaya Tak Terduga
Gambar 4.164 Tampilan Laporan SurplusDefisit
Tabel 4.65 Listing Laporan SurplusDefisit
Listing Program Keterangan
Dim sql1 As String With Cr1
.ReportFileName = App.Path \Laporan\L_sd.rpt
sql1 = select from v_sd where Bulan= Combo2.ListIndex + 1
and tahun = Text1 MsgBox sql1
.SQLQuery = sql1 .ParameterFieldsSSB = ssb ;
SSB ;1 .ParameterFields4 = kr ;
KR ;1 .ParameterFields1 = sb ;
SB ;1 .ParameterFields2 = lt ;
LT ;1 .ParameterFields3 = gm ;
Gm ;1 .ParameterFields6 = evant ;
EVANT ;1 .ParameterFields5 = ln ;
LN ;1 .ParameterFields7 = lis ;
Listrik ;1 .ParameterFields8 = q ;
air ;1 .ParameterFields9 = telp ;
telepon ;1 .ParameterFields10 = prlkp
; perlengkapan ;1 .ParameterFields11 = mkn ;
Perintah untuk Cetak
Tabel 4.66 Listing Laporan SurplusDefisit Lanjutan 1
makan ;1 .ParameterFields13 = ptngn
; potongan ;1 .ParameterFields12 = lmbr ;
lembur ;1 .ParameterFields14 = hnr ;
honor ;1 .ParameterFields15 = lain ;
lain ;1 .ParameterFields16 = saldo
; Saldo ;1 .ParameterFieldstgl = tgl
; Label2 ;1 .WindowState = crptMaximized
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
Screen.MousePointer = vbDefault Else
Screen.MousePointer = vbHourglass Dim sql4 As String
With Cr1 .ReportFileName = App.Path
\Laporan\L_bbu_Tahun.rpt sql4 = select from
v_bbu_ok where No_RL= Text3 and tahun = Text4
.SQLQuery = sql4 .WindowState =
crptMaximized .Destination = crptToWindow
.RetrieveDataFiles .Action = 1
End With Screen.MousePointer = vbDefault
End If End If
Gambar 4.165 Laporan Keuangan SurplusDefisit