62 KEMENTERIAN PENDIDIKAN NASIONAL UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jl. Bioteknologi No.1 Kampus USU Padang Bulan Medan 20155 Telp. (061) 8211050, 8214290, Fax (061) 8214290 KARTU BIMBINGAN TUGAS AKHIR MAHASISWA Nama Mahasiswa : Mustika Fajriah Nomor Stambuk : 082406172 Judul Tugas Akhir : Sistem Penjadwalan Berbasis Data Pada SMP Swasta Bina Sejahtera Medan Dosen Pembimbing : Drs. Suwarno Arriswoyo, M.Si Tanggal Mulai Bimbingan : 25 Januari 2011 Tanggal Selesai Bimbingan : 21 Mei 2011 No TANGGAL ASISTEN BIMBINGAN PEMBAHASAN PADA ASISTENSI MENGENAI, PADA BAB PARAF DOSEN PEMBIMBING KETERANGAN 1 20 Jan 2011 Pengajuan Proposal ACC 2 25 Jan 2011 ACC Proposal ACC 3 9 Mei 2011 Bab 1-2 ACC 4 13 Mei 2011 Bab 3-4 ACC 5 18 Mei 2011 Bab 5-6 ACC 6 21 Mei 2011 Uji Program ACC * Kartu ini harap dikembalikan ke Departemen Matematika bila bimbingan telah selesai. Diketahui: Departemen Matematika FMIPA USU Ketua, Disetujui: Pembimbing Utama/ Penanggung Jawab Prof. Drs. Tulus, Vordipl. Math., M.Si., Ph.D Drs. Suwarno Arriswoyo, M.Si NIP. 196209011988031002 NIP. 195003211980031001
63 SURAT KETERANGAN Hasil Uji Program Tugas Akhir Yang bertanda tangan dibawah ini, menerangkan bahwa Mahasiswa Tugas Akhir Program D-III Teknik Informatika / Statistika : Nama : Mustika Fajriah NIM : 082406172 Program Studi : D-III Teknik Informatika Judul Tugas Akhir : Sistem Penjadwalan Guru Berbasis Data Pada SMP Swata Bina Sejahtera Medan Telah melaksanakan test program Tugas Akhir Mahasiswa tersebut di atas pada tanggal 21 Mei 2011 Dengan Hasil : Sukses / Gagal Demikian diterangkan untuk digunakan melengkapi syarat pendaftaran Ujian Meja Hijau Tugas Akhir Mahasiswa bersangkutan di Departemen Matematika FMIPA USU Medan. Medan, Mei 2011 Dosen Pembimbing Drs. Suwarno Arriswoyo, M.Si NIP. 19500321 198003 1 001
64 LISTING PROGRAM Form Data Guru Private Sub cmdhps_click() Adodc1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_guru" If Adodc1.Recordset.EOF Then MsgBox "Data tidak ada" Else Adodc1.Recordset.Delete Adodc1.RecordSource = "select * from tabel_guru" cbokguru.text = "" Text1.Text = "" Text2.Text = "" Text3.Text = "" cbokguru.setfocus Private Sub cmdkluar_click() Unload Me Private Sub cmdsmpn_click() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_guru" 'Adodc1.Recordset.Update Adodc1.RecordSource = "select * from tabel_guru" Adodc1.Recordset.AddNew
65 Adodc1.Recordset!Kd_guru = cbokguru.text Adodc1.Recordset!Nama = Text1.Text Adodc1.Recordset!Pendidikan_Tertinggi = Text2.Text Adodc1.Recordset!Mata_Pelajaran = Text3.Text Adodc1.Recordset.Update Adodc1.RecordSource = "Select * from tabel_guru" cbokguru.text = "" Text1.Text = "" Text2.Text = "" Text3.Text = "" cbokguru.setfocus Private Sub Form_Load() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_guru" Set DataGrid1.DataSource = Adodc1 Adodc1.Visible = False listcombo Private Sub sl_click() Unload Me Private Sub listcombo() cbokguru.clear With cbokguru.additem "RL", 0.AddItem "TN", 1.AddItem "GS", 2.AddItem "MS", 3.AddItem "IH", 4.AddItem "TD", 5.AddItem "SY", 6.AddItem "NM", 7
66.AddItem "ST", 8.AddItem "HS", 9.AddItem "MR", 10.AddItem "SM", 11.AddItem "YA", 12.AddItem "FA", 13.AddItem "FL", 14.AddItem "RI", 15.AddItem "AS", 16.AddItem "SP", 17.AddItem "EH", 18.AddItem "NS", 19 End With Private Sub Text1_GotFocus() If cbokguru = "RL" Then Text1.Text = "Rulianto" ElseIf cbokguru = "TN" Then Text1.Text = "Trisnawati" ElseIf cbokguru = "GS" Then Text1.Text = " Ganda Subrata S.Pd" ElseIf cbokguru = "MS" Then Text1.Text = "Maman Sudarman, S.Pd" ElseIf cbokguru = "IH" Then Text1.Text = " Irmawati Harahap, S.Pd" ElseIf cbokguru = "ST" Then Text1.Text = "Dra. Susdianti" ElseIf cbokguru = "HS" Then Text1.Text = "Dra. Halimatusa'diah" ElseIf cbokguru = "FA" Then Text1.Text = "Parida,S.Pd" ElseIf cbokguru = "FL" Then Text1.Text = "Farida Hanum Lubis, BA" ElseIf cbokguru = "RI" Then Text1.Text = "Drs. Ripa Irwansyah" ElseIf cbokguru = "AS" Then Text1.Text = "Anita Kemala Sari,S.Pd" ElseIf cbokguru = "SN" Then Text1.Text = "Syahrul Nizat, S.Pd"
67 ElseIf cbokguru = "EH" Then Text1.Text = "Erlina Hastuti, S.Pd" ElseIf cbokguru = "NS" Then Text1.Text = "Ir. Narti Sembiring, S.Pd" ElseIf cbokguru = "TD" Then Text1.Text = " Tina Asmara Dewi" ElseIf cbokguru = "SY" Then Text1.Text = "Suyanti, SE " ElseIf cbokguru = "NM" Then Text1.Text = "Nuraini Matondang S.Ag" ElseIf cbokguru = "MR" Then Text1.Text = "Drs. Maad Rais" ElseIf cbokguru = "SM" Then Text1.Text = "Drs. Sumardi" ElseIf cbokguru = "YA" Then Text1.Text = "Yudha Aruji Winata, S.Pd" ElseIf cbokguru = "SP" Then Text1.Text = "Supiyanti, S.pd" Text1.Locked = True Private Sub Text2_GotFocus() If cbokguru = "RL" Then ElseIf cbokguru = "GS" Then ElseIf cbokguru = "TN" Then ElseIf cbokguru = "MS" Then ElseIf cbokguru = "IH" Then Text2.Text = "S1 " ElseIf cbokguru = "ST" Then ElseIf cbokguru = "HS" Then ElseIf cbokguru = "FA" Then ElseIf cbokguru = "FL" Then
68 Text2.Text = "D2" ElseIf cbokguru = "RI" Then ElseIf cbokguru = "AS" Then ElseIf cbokguru = "SN" Then ElseIf cbokguru = "EH" Then ElseIf cbokguru = "NS" Then ElseIf cbokguru = "TD" Then ElseIf cbokguru = "SY" Then ElseIf cbokguru = "NM" Then ElseIf cbokguru = "MR" Then ElseIf cbokguru = "SM" Then ElseIf cbokguru = "YA" Then ElseIf cbokguru = "SP" Then Text2.Locked = True Private Sub Text3_GotFocus() If cbokguru = "RL" Then Text3.Text = "fisika" ElseIf cbokguru = "GS" Then Text3.Text = "Matematika" ElseIf cbokguru = "TN" Then Text3.Text = "Matematika" ElseIf cbokguru = "MS" Then Text3.Text = "Matematika" ElseIf cbokguru = "IH" Then Text3.Text = "IPS"
69 ElseIf cbokguru = "ST" Then Text3.Text = "IPS" ElseIf cbokguru = "HS" Then Text3.Text = "IPS" ElseIf cbokguru = "FA" Then Text3.Text = "B. ind" ElseIf cbokguru = "FL" Then Text3.Text = "B. ind" ElseIf cbokguru = "RI" Then Text3.Text = "B. ind" ElseIf cbokguru = "AS" Then Text3.Text = "B. ing" ElseIf cbokguru = "SN" Then Text3.Text = "B. ing" ElseIf cbokguru = "EH" Then Text3.Text = "IPA" ElseIf cbokguru = "NS" Then Text3.Text = "Agro/IPA" ElseIf cbokguru = "TD" Then Text3.Text = "IPS" ElseIf cbokguru = "SY" Then Text3.Text = "Tikom" ElseIf cbokguru = "NM" Then Text3.Text = "ALQ" ElseIf cbokguru = "MR" Then Text3.Text = "Pend. Agama Islam" ElseIf cbokguru = "SM" Then Text3.Text = "Kepala Sekolah" ElseIf cbokguru = "YA" Then Text3.Text = "Penjaskes" ElseIf cbokguru = "SP" Then Text3.Text = "Pks" Text3.Locked = True
70 Form Data Mata Pelajaran Private Sub cmdhps_click() Adodc1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_mt_pel" If Adodc1.Recordset.EOF Then MsgBox "Data tidak ada" Else Adodc1.Recordset.Delete Adodc1.RecordSource = "select * from tabel_mt_pel" cbokguru.text = "" txtnguru.text = "" cbokguru.setfocus Private Sub cmdkluar_click() Unload Me Private Sub cmdsmpn_click() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_mt_pel " 'Adodc1.Recordset.Update Adodc1.RecordSource = "select * from tabel_mt_pel" Adodc1.Recordset.AddNew Adodc1.Recordset!Kd_mata_pel = cbokguru.text Adodc1.Recordset!Nama_pelajaran = txtnguru.text Adodc1.Recordset.Update Adodc1.RecordSource = "Select * from tabel_mt_pel"
71 cbokguru.text = "" txtnguru.text = "" cbokguru.setfocus Private Sub Form_Load() Adodc1.ConnectionString="Provider=Microsoft.JET.OLEDB.4.0;DataSource = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource="select * from tabel_mt_pel order by Kd_mata_pel" Set DataGrid1.DataSource = Adodc1 Adodc1.Visible = False listcombo Private Sub listcombo() cbokguru.clear With cbokguru.additem "Mat", 0.AddItem "IPS", 1.AddItem "AGI", 2.AddItem "PAI", 3.AddItem "Tikom", 4.AddItem "B.Ind", 5.AddItem "B.Ing", 6.AddItem "Bio", 7.AddItem "KTK", 8.AddItem "Penjas", 9.AddItem "PKN", 10.AddItem "Fis", 11 End With Private Sub txtnguru_gotfocus() If cbokguru = "Mat" Then txtnguru = "Matematika" ElseIf cbokguru = "IPS" Then txtnguru = "Ilmu Pengetahuan Sosial" ElseIf cbokguru = "AGI" Then txtnguru = "Agro Industri"
72 ElseIf cbokguru = "PAI" Then txtnguru = "Pendidikan Agama Islam" ElseIf cbokguru = "Tikom" Then txtnguru = "Teknologi Informasi & Komputer" ElseIf cbokguru = "B.Ind" Then txtnguru = "Bahasa Indonesia" ElseIf cbokguru = "B.Ing" Then txtnguru = "Bahasa Inggris" ElseIf cbokguru = "Bio" Then txtnguru = "Biologi" ElseIf cbokguru = "KTK" Then txtnguru = "Kerajinan Tangan & Kesenian" ElseIf cbokguru = "Penjas" Then txtnguru = "Pendidkan Jasmani" ElseIf cbokguru = "PKN" Then txtnguru = "Pendidikan Kewarganegaraan" ElseIf cbokguru = "Fis" Then txtnguru = "Fisika" txtnguru.locked = True Form Data Ruang Private Sub cmdhps_click() Adodc1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_dt_ruang" If Adodc1.Recordset.EOF Then MsgBox "Data tidak ada" Else Adodc1.Recordset.Delete Adodc1.RecordSource = "select * from tabel_dt_ruang" Combo1.Text = "" Text1.Text = ""
73 Text2.Text = "" Combo1.SetFocus Private Sub cmdkluar_click() Unload Me Private Sub cmdsmpn_click() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_dt_ruang " 'Adodc1.Recordset.Update Adodc1.RecordSource = "select * from tabel_dt_ruang" Adodc1.Recordset.AddNew Adodc1.Recordset!Kode = Combo1.Text Adodc1.Recordset!Kelas = Text1.Text Adodc1.Recordset!kapasitas = Text2.Text Adodc1.Recordset.Update Adodc1.RecordSource = "Select * from tabel_dt_ruang" Combo1.Text = "" Text1.Text = "" Text2.Text = "" Combo1.SetFocus Private Sub Form_Load() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_dt_ruang order by kode" Set DataGrid1.DataSource = Adodc1 Adodc1.Visible = False listcombo
74 Private Sub listcombo() Combo1.Clear With Combo1.AddItem "VII-1", 0.AddItem "VII-2", 1.AddItem "VIII-1", 2.AddItem "VIII-2", 3.AddItem "VIII-3", 4.AddItem "IX-1", 5.AddItem "IX-2", 6.AddItem "IX-3", 7 '.AddItem "R-09", 8 '.AddItem "R-10", 9 End With Private Sub Text1_GotFocus() If Combo1.Text = "VII-1" Then Text1.Text = "Ruang VII-1" ElseIf Combo1.Text = "VII-2" Then Text1.Text = "Ruang VII-2" ElseIf Combo1.Text = "VIII-1" Then Text1.Text = "Ruang VIII-1" ElseIf Combo1.Text = "VIII-2" Then Text1.Text = "Ruang VIII-2" ElseIf Combo1.Text = "VIII-3" Then Text1.Text = "Ruang VIII-3" ElseIf Combo1.Text = "IX-1" Then Text1.Text = "Ruang IX-1" ElseIf Combo1.Text = "IX-2" Then Text1.Text = "Ruang IX-2" ElseIf Combo1.Text = "IX-3" Then Text1.Text = "Ruang IX-3" Text1.Locked = True Private Sub Text2_GotFocus() If Text1.Text = "Ruang VII-1" Then Text2.Text = " 40 Siswa "
75 ElseIf Text1.Text = "Ruang VII-2" Then Text2.Text = " 40 Siswa " ElseIf Text1.Text = "Ruang VIII-1" Then Text2.Text = " 40 Siswa " ElseIf Text1.Text = "Ruang VIII-2" Then Text2.Text = " 40 Siswa " ElseIf Text1.Text = "Ruang VIII-3" Then Text2.Text = " 40 Siswa " ElseIf Text1.Text = "Ruang IX-1" Then Text2.Text = " 40 Siswa " ElseIf Text1.Text = "Ruang IX-2" Then Text2.Text = " 40 Siswa " ElseIf Text1.Text = "Ruang IX-3" Then Text2.Text = " 40 Siswa " Text2.Locked = True Form Data Waktu Private Sub cmdhps_click() Adodc1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_waktu" If Adodc1.Recordset.EOF Then MsgBox "Data tidak ada" Else Adodc1.Recordset.Delete Adodc1.RecordSource = "select * from tabel_waktu" cbokwaktu.text = "" Text1.Text = "" Text2.Text = "" cbokwaktu.setfocus
76 Private Sub cmdkluar_click() Unload Me Private Sub cmdsmpn_click() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_waktu" 'Adodc1.Recordset.Update Adodc1.RecordSource = "select * from tabel_waktu" Adodc1.Recordset.AddNew Adodc1.Recordset!kd_waktu = cbokwaktu.text Adodc1.Recordset!jam = Text1.Text Adodc1.Recordset!ktgri_waktu = Text2.Text Adodc1.Recordset.Update Adodc1.RecordSource = "Select * from tabel_waktu" cbokwaktu.text = "" Text1.Text = "" Text2.Text = "" cbokwaktu.setfocus Private Sub Form_Load() Adodc1.ConnectionString="Provider=Microsoft.JET.OLEDB.4.0;DataSource = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_waktu order by kd_waktu" Set DataGrid1.DataSource = Adodc1 Adodc1.Visible = False For i = 1 To 10 cbokwaktu.additem i Next i
77 Private Sub Text1_GotFocus() If cbokwaktu = "1" Then Text1.Text = "07.30-08.10" ElseIf cbokwaktu = "2" Then Text1.Text = "08.10-08.50" ElseIf cbokwaktu = "3" Then Text1.Text = "08.50-09.30" ElseIf cbokwaktu = "4" Then Text1.Text = "09.30-09.45" ElseIf cbokwaktu = "5" Then Text1.Text = "09.45-10.25" ElseIf cbokwaktu = "6" Then Text1.Text = "10.25-11.10" ElseIf cbokwaktu = "7" Then Text1.Text = "11.10-11.25" ElseIf cbokwaktu = "8" Then Text1.Text = "11.10-11.25" ElseIf cbokwaktu = "9" Then Text1.Text = "11.25-12.10" ElseIf cbokwaktu = "10" Then Text1.Text = "12.10-13.50" Text1.Locked = True Private Sub Text2_GotFocus() If Text1.Text = "07.30-08.10" Then Text2.Text = "Jam I" ElseIf Text1.Text = " 08.10-08.50" Then Text2.Text = "Jam II" ElseIf Text1.Text = " 08.50-09.30" Then Text2.Text = "Jam III" ElseIf Text1.Text = " 09.30-09.45" Then Text2.Text = "Waktu Istirahat I" ElseIf Text1.Text = " 09.45-10.25" Then Text2.Text = "Jam IV" ElseIf Text1.Text = " 10.25-11.10" Then Text2.Text = "Jam V" ElseIf Text1.Text = " 11.10-11.25" Then Text2.Text = "Waktu Istirahat II"
78 ElseIf Text1.Text = " 11.10-11.25" Then Text2.Text = "Jam ke VI" ElseIf Text1.Text = " 11.25-12.10" Then Text2.Text = "Jam VI" ElseIf Text1.Text = " 12.10-13.50" Then Text2.Text = "Jam VII" Text2.Locked = True Form Roster VII-1 Private Sub cmdhps_click() Adodc1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_roster_vii1" If Adodc1.Recordset.EOF Then MsgBox "Data tidak ada" Else Adodc1.Recordset.Delete Adodc1.RecordSource = "select * from tabel_roster_vii1" Combo1.Text = "" Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" Combo1.SetFocus Private Sub cmdkluar_click() Unload Me
79 Private Sub cmdsmpn_click() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_roster_vii1 order by Hari " 'Adodc1.Recordset.Update Adodc1.RecordSource = "select * from tabel_roster_vii1 order by Hari" Adodc1.Recordset.AddNew Adodc1.Recordset!Hari = Combo1.Text Adodc1.Recordset!JamI = Text1.Text Adodc1.Recordset!JamII = Text2.Text Adodc1.Recordset!JamIII = Text3.Text Adodc1.Recordset!JamIV = Text4.Text Adodc1.Recordset!JamV = Text5.Text Adodc1.Recordset!JamVI = Text6.Text Adodc1.Recordset!JamVII = Text7.Text Adodc1.Recordset.Update Adodc1.RecordSource = "Select * from tabel_roster_vii1 order by Hari" Combo1.Text = "" Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" Combo1.SetFocus Private Sub Form_Load() Adodc1.ConnectionString="Provider=Microsoft.JET.OLEDB.4.0;DataSource = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource ="select * from tabel_roster_vii1 order by Hari "
80 Set DataGrid1.DataSource = Adodc1 Adodc1.Visible = False listcombo Private Sub listcombo() Combo1.Clear With Combo1.AddItem "senin", 0.AddItem "selasa", 1.AddItem "rabu", 2.AddItem "kamis", 3.AddItem "jumat", 4.AddItem "sabtu", 5 End With Private Sub Text1_GotFocus() If Combo1 = "senin" Then Text1.Text = "Upacara Bendera " ElseIf Combo1 = "selasa" Then Text1.Text = "BIO" ElseIf Combo1 = "rabu" Then Text1.Text = "TIKOM" ElseIf Combo1 = "kamis" Then Text1.Text = "IPS" ElseIf Combo1 = "jumat" Then Text1.Text = "B. IND" ElseIf Combo1 = "sabtu" Then Text1.Text = "PENJAS" Text1.Locked = True Private Sub Text2_GotFocus() If Combo1 = "senin" Then Text2.Text = " MM " ElseIf Combo1 = "selasa" Then Text2.Text = " BP "
81 ElseIf Combo1 = "rabu" Then Text2.Text = "TIKOM" ElseIf Combo1 = "kamis" Then Text2.Text = "IPS" ElseIf Combo1 = "jumat" Then Text2.Text = "B. IND" ElseIf Combo1 = "sabtu" Then Text2.Text = "PENJAS" Text2.Locked = True Private Sub Text3_GotFocus() If Combo1 = "senin" Then Text3.Text = " MM " ElseIf Combo1 = "selasa" Then Text3.Text = " B. ING" ElseIf Combo1 = "rabu" Then Text3.Text = "PAI" ElseIf Combo1 = "kamis" Then Text3.Text = "B. ING" ElseIf Combo1 = "jumat" Then Text3.Text = "KTK" ElseIf Combo1 = "sabtu" Then Text3.Text = "IPS" Text3.Locked = True Private Sub Text4_GotFocus() If Combo1 = "senin" Then Text4.Text = " IPS " ElseIf Combo1 = "selasa" Then Text4.Text = "B. IND " ElseIf Combo1 = "rabu" Then Text4.Text = "MM" ElseIf Combo1 = "kamis" Then Text4.Text = "MM" ElseIf Combo1 = "jumat" Then Text4.Text = "KTK"
82 ElseIf Combo1 = "sabtu" Then Text4.Text = "FIS" Text4.Locked = True Private Sub Text5_GotFocus() If Combo1 = "senin" Then Text5.Text = " IPS " ElseIf Combo1 = "selasa" Then Text5.Text = "B. IND" ElseIf Combo1 = "rabu" Then Text5.Text = " BIO " ElseIf Combo1 = "kamis" Then Text5.Text = "PKN" ElseIf Combo1 = "jumat" Then Text5.Text = "AGI" ElseIf Combo1 = "sabtu" Then Text5.Text = "ALQ" Text5.Locked = True Private Sub Text6_GotFocus() If Combo1 = "senin" Then Text6.Text = " B. ING " ElseIf Combo1 = "selasa" Then Text6.Text = "FIS" ElseIf Combo1 = "rabu" Then Text6.Text = "PAI" ElseIf Combo1 = "kamis" Then Text6.Text = "PKN" ElseIf Combo1.Text = "Kamis" Then MsgBox "Hari Kamis hanya 6 mata pelajaran", vbcritical, "Warning" Combo1.SetFocus ElseIf Combo1.Text = "jumat" Then MsgBox "Hari Jumat hanya 5 mata pelajaran", vbcritical, "Warning" Combo1.SetFocus ElseIf Combo1.Text = "sabtu" Then
83 MsgBox "Hari Sabtu hanya 5 mata pelajaran", vbcritical, "Warning" Combo1.SetFocus Text6.Locked = True Private Sub Text7_GotFocus() If Combo1 = "senin" Then Text7.Text = " B. ING " ElseIf Combo1 = "selasa" Then Text7.Text = "BIO" ElseIf Combo1 = "rabu" Then Text7.Text = "MM" ElseIf Combo1.Text = "Kamis" Then MsgBox "Hari Kamis hanya 6 mata pelajaran", vbcritical, "Warning" Combo1.SetFocus ElseIf Combo1.Text = "jumat" Then MsgBox "Hari Jumat hanya 5 mata pelajaran", vbcritical, "Warning" Combo1.SetFocus ElseIf Combo1.Text = "sabtu" Then MsgBox "Hari Sabtu hanya 5 mata pelajaran", vbcritical, "Warning" Combo1.SetFocus Text7.Locked = True Form Jadwal Guru Private Sub cmdhapus_click() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0 ; Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_penjadwalan where Kode = '" & cbokode & "'" If Adodc1.Recordset.EOF Then MsgBox "Data Tidak Ada" Else Adodc1.Recordset.Delete
84 Adodc1.RecordSource = " select * from tabel_penjadwalan order by Kode" cbokguru.text = "" cbohari.text = "" cbokelas.text = "" cbopljrn.text = "" Combo1.Text = "" Combo2.Text = "" Combo3.Text = "" Label5.Caption = "" Label7.Caption = "" Label9.Caption = "" Private Sub cmdkeluar_click() Unload Me Private Sub cmdsmpn_click() Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_penjadwalan where Kode = '" & cbokode & "'" Adodc1.RecordSource = "select * from tabel_penjadwalan order by Kode" Adodc1.Recordset.AddNew Adodc1.Recordset!Kode = cbokguru.text Adodc1.Recordset!Hari = cbohari.text Adodc1.Recordset!Kelas = cbokelas.text Adodc1.Recordset!Pelajaran = cbopljrn.text Adodc1.Recordset!Jam_ke = Combo1.Text Adodc1.Recordset!Jam_ke2 = Combo2.Text Adodc1.Recordset!Jam_ke3 = Combo3.Text
85 Adodc1.Recordset!ktgri_waktu1 = Label5.Caption Adodc1.Recordset!ktgri_waktu2 = Label7.Caption Adodc1.Recordset!ktgri_waktu3 = Label9.Caption Adodc1.Recordset.Update Adodc1.RecordSource="select*from tabel_penjadwalan order by Kode" cbokguru.text = "" cbohari.text = "" cbokelas.text = "" cbopljrn.text = "" Combo1.Text = "" Combo2.Text = "" Combo3.Text = "" Label5.Caption = "" Label7.Caption = "" Label9.Caption = "" Private Sub Combo1_Change() Adodc6.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db_tatika.mdb" Adodc6.RecordSource = "select * from tabel_waktu where ktgri_waktu = '" & Combo1.Text & "'" Adodc6.Refresh If Adodc6.Recordset.EOF Then Label5.Caption = "" Adodc6.RecordSource = "select * from tabel_waktu" Adodc6.Recordset.Requery Else Label5.Caption = Adodc6.Recordset!jam Private Sub Combo1_Click() Adodc6.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " & App.Path & "\db_tatika.mdb" Adodc6.RecordSource = "select * from tabel_waktu where ktgri_waktu = '" & Combo1.Text & "'"
86 Adodc6.Refresh If Adodc6.Recordset.EOF Then Label5.Caption = "" Adodc6.RecordSource = "select * from tabel_waktu" Adodc6.Recordset.Requery Else Label5.Caption = Adodc6.Recordset!jam Private Sub Combo2_Change() Adodc6.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " & App.Path & "\db_tatika.mdb" Adodc6.RecordSource = "select * from tabel_waktu where ktgri_waktu = '" & Combo2.Text & "'" Adodc6.Refresh If Adodc6.Recordset.EOF Then Label7.Caption = "" Adodc6.RecordSource = "select * from tabel_waktu" Adodc6.Recordset.Requery Else Label7.Caption = Adodc6.Recordset!jam Private Sub Combo2_Click() Adodc6.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " & App.Path & "\db_tatika.mdb" Adodc6.RecordSource = "select * from tabel_waktu where ktgri_waktu = '" & Combo2.Text & "'" Adodc6.Refresh If Adodc6.Recordset.EOF Then Label7.Caption = "" Adodc6.RecordSource = "select * from tabel_waktu" Adodc6.Recordset.Requery Else Label7.Caption = Adodc6.Recordset!jam
87 Private Sub Combo3_Change() Adodc6.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " & App.Path & "\db_tatika.mdb" Adodc6.RecordSource = "select * from tabel_waktu where ktgri_waktu = '" & Combo3.Text & "'" Adodc6.Refresh If Adodc6.Recordset.EOF Then Label9.Caption = "" Adodc6.RecordSource = "select * from tabel_waktu" Adodc6.Recordset.Requery Else Label9.Caption = Adodc6.Recordset!jam Private Sub Combo3_Click() Adodc6.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " & App.Path & "\db_tatika.mdb" Adodc6.RecordSource = "select * from tabel_waktu where ktgri_waktu = '" & Combo3.Text & "'" Adodc6.Refresh If Adodc6.Recordset.EOF Then Label9.Caption = "" Adodc6.RecordSource = "select * from tabel_waktu" Adodc6.Recordset.Requery Else Label9.Caption = Adodc6.Recordset!jam Private Sub Form_Activate() Adodc1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;DataSource= " & App.Path & "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_guru " Adodc5.Refresh Do While Not Adodc5.Recordset.EOF cbokguru.additem Adodc5.Recordset!Kd_guru Adodc5.Recordset.MoveNext Loop
88 Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0 ; Data Source= " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource ="select*from tabel_mt_pel order by Kd_mata_pel" Adodc2.Refresh Do While Not Adodc2.Recordset.EOF cbopljrn.additem Adodc2.Recordset!Kd_mata_pel Adodc2.Recordset.MoveNext Loop Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0 ; Data Source= " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_dt_ruang order by kode" Adodc3.Refresh Do While Not Adodc3.Recordset.EOF cbokelas.additem Adodc3.Recordset!Kode Adodc3.Recordset.MoveNext Loop Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0 ; Data Source= " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_roster_vii1 order by Hari" Adodc4.Refresh Do While Not Adodc4.Recordset.EOF cbohari.additem Adodc4.Recordset!Hari Adodc4.Recordset.MoveNext Loop Adodc1.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_waktu " Adodc6.Refresh Do While Not Adodc6.Recordset.EOF Combo1.AddItem Adodc6.Recordset!ktgri_waktu Combo2.AddItem Adodc6.Recordset!ktgri_waktu Combo3.AddItem Adodc6.Recordset!ktgri_waktu Adodc6.Recordset.MoveNext Loop
89 Private Sub Form_Load() Adodc1.ConnectionString = " Provider = Microsoft.JET.OLEDB.4.0 ; Data Source = " + App.Path + "\db_tatika.mdb" Adodc1.RecordSource = "select * from tabel_penjadwalan order by Kode" Set DataGrid1.DataSource = Adodc1 Adodc1.Visible = False Adodc2.Visible = False Adodc3.Visible = False Adodc4.Visible = False Adodc5.Visible = False Adodc6.Visible = False Adodc2.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0 ; Data source = " + App.Path + "\db_tatika.mdb" Adodc2.RecordSource = "select * from tabel_mt_pel" Adodc2.Refresh Adodc3.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0 ; Data source = " + App.Path + "\db_tatika.mdb" Adodc3.RecordSource = "select * from tabel_dt_ruang" Adodc3.Refresh Adodc4.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0 ; Data source = " + App.Path + "\db_tatika.mdb" Adodc4.RecordSource = "select * from tabel_roster_vii1" Adodc4.Refresh Adodc5.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0 ; Data Source = " + App.Path + "\db_tatika.mdb" Adodc5.RecordSource = "tabel_guru" Adodc5.Refresh Adodc6.ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0;Data Source = " + App.Path + "\db_tatika.mdb" Adodc6.RecordSource = "tabel_waktu" Adodc6.Refresh
90 Form Report Private Sub Command1_Click() Select Case Combo1.ListIndex Case 0 If Combo1.Text = "laporan tabel guru" Then Case 1 If Combo1.Text = "laporan data mata pelajaran" Then Case 2 If Combo1.Text = "laporan data ruang" Then Case 3 If Combo1.Text = "laporan data waktu" Then Case 4 If Combo1.Text = "laporan roster pelajaran kelas VII-1" Then Case 5 If Combo1.Text = "laporan roster pelajaran kelas VII-2" Then Case 6 If Combo1.Text = "laporan roster pelajaran kelas VIII-1" Then Case 7 If Combo1.Text = "laporan roster pelajaran kelas VIII-2" Then Case 8 If Combo1.Text = "laporan roster pelajaran kelas VIII-3" Then Case 9 If Combo1.Text = "laporan roster pelajaran kelas IX-1" Then Case 10 If Combo1.Text = "laporan roster pelajaran kelas IX-2" Then Case 11 If Combo1.Text = "laporan roster pelajaran kelas IX-3" Then
91 Case 12 If Combo1.Text = "laporan data jadwal guru" Then End Select Private Sub Command2_Click() If Combo1.Text = "laporan tabel guru" Then Report_tb_guru.PrintReport (True) If Combo1.Text = "laporan data mata pelajaran" Then Report_Pelajaran.PrintReport (True) If Combo1.Text = "laporan data ruang" Then Report_Ruang.PrintReport (True) If Combo1.Text = "laporan data waktu" Then Report_waktu.PrintReport (True) If Combo1.Text = "laporan roster pelajaran kelas VII-1" Then Report_VII1.PrintReport (True) If Combo1.Text = "laporan roster pelajaran kelas VII-2" Then Report_VII2.PrintReport (True) If Combo1.Text = "laporan roster pelajaran kelas VIII-1" Then Report_VIII1.PrintReport (True) If Combo1.Text = "laporan roster pelajaran kelas VIII-2" Then Report_VIII2.PrintReport (True) If Combo1.Text = "laporan roster pelajaran kelas VIII-3" Then Report_VIII3.PrintReport (True) If Combo1.Text = "laporan roster pelajaran kelas IX-1" Then Report_IX1.PrintReport (True) If Combo1.Text = "laporan roster pelajaran kelas IX-2" Then Report_IX2.PrintReport (True)
92 If Combo1.Text = "laporan roster pelajaran kelas IX-3" Then Report_IX3.PrintReport (True) If Combo1.Text = "laporan data jadwal guru" Then Report_Penjadwalan.PrintReport (True) Private Sub Form_Load() listlaporan Private Sub sl1_click() Unload Me Private Sub listlaporan() Combo1.Clear With Combo1.AddItem "laporan tabel guru", 0.AddItem "laporan data mata pelajaran", 1.AddItem "laporan data ruang", 2.AddItem "laporan data waktu", 3.AddItem "laporan roster pelajaran kelas VII-1", 4.AddItem "laporan roster pelajaran kelas VII-2", 5.AddItem "laporan roster pelajaran kelas VIII-1", 6.AddItem "laporan roster pelajaran kelas VIII-2", 7.AddItem "laporan roster pelajaran kelas VIII-3", 8.AddItem "laporan roster pelajaran kelas IX-1", 9.AddItem "laporan roster pelajaran kelas IX-2", 10.AddItem "laporan roster pelajaran kelas IX-3", 11.AddItem "laporan data jadwal guru", 12 End With