Sistem Penerimaan Siswa Baru Pada Sekolah Smk 1 Medan Area Medan Menggunakan Microsoft Visual Basic 6.0

  L A M P

  I R A N Tampilan Awal Aplikasi (frmSplashscreen) Kode Program : Option Explicit Private Sub Command1_Click() frmLogin2.Show frmSplashScreen.Hide End Sub Private Sub Form_KeyPress(KeyAscii As Integer) Unload Me End Sub Private Sub Form_Load() lblMenu.Caption = "S" End Sub Private Sub Frame1_Click() Unload Me

  End Sub Private Sub timer1_timer() Select Case lblMenu Case "S" lblMenu.Caption = "Se" Case "Se" lblMenu.Caption = "Sel" Case "Sel" lblMenu.Caption = "Sela" Case "Sela" lblMenu.Caption = "Selam" Case "Selam" lblMenu.Caption = "Selama" Case "Selama" lblMenu.Caption = "Selamat" Case "Selamat" lblMenu.Caption = "Selamat " Case "Selamat " lblMenu.Caption = "Selamat D" Case "Selamat D" lblMenu.Caption = "Selamat Da" Case "Selamat Da" lblMenu.Caption = "Selamat Dat"

  Case "Selamat Dat" lblMenu.Caption = "Selamat Data" Case "Selamat Data" lblMenu.Caption = "Selamat Datan" Case "Selamat Datan" lblMenu.Caption = "Selamat Datang" Case "Selamat Datang" lblMenu.Caption = "S" End Select End Sub Tampilan Login Administrator (frmLogin2) Kode Program : Private Sub cmdBatal_Click() Dim pil As VbMsgBoxResult pil = MsgBox("Anda Yakin Batal Login?", vbQuestion + vbYesNo, "Exit")

  If (pil = vbYes) Then End End Sub Private Sub cmdOK_Click() If txtPassword = "password" Then LoginSucceeded = True Me.Hide MsgBox "Login Sukses", , "Login Sukses" frmUtama.Show Else MsgBox "Maaf, Password Anda Salah, Coba Lagi ya!", , "Login" txtUsername.Text = "" txtPassword.Text = "" txtUsername.SetFocus End If End Sub Private Sub timer1_timer() lblLogin.Visible = Not lblLogin.Visible End Sub Private Sub txtPassword_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cmdOK.SetFocus End Sub Private Sub txtUsername_keypress(KeyAscii As Integer)

  If KeyAscii = 13 Then txtPassword.SetFocus End Sub Tampilan Menu Utama Formulir Pendaftaran (frmUtama) Kode Program : Private Sub cmdAyahSiswa_Click() frmDataAyah.Show frmUtama.Hide End Sub Private Sub cmdIbuSiswa_Click() frmDataIbu.Show frmUtama.Hide

  End Sub Private Sub cmdKegemaran_Click() frmKegemaran.Show frmUtama.Hide End Sub Private Sub cmdKeluar_Click() Dim keluar As VbMsgBoxResult keluar = MsgBox("Anda Yakin Ingin Keluar?", vbQuestion + vbYesNo, "Exit") If (keluar = vbYes) Then frmSplashScreen.Show frmUtama.Hide End If End Sub Private Sub cmdDataSiswa_Click() frmDataSiswa2.Show frmUtama.Hide End Sub Private Sub cmdKesehatanSiswa_Click() frmDataKesehatan.Show End Sub Private Sub cmdPembayaran_Click() frmPembayaran.Show frmUtama.Hide End Sub Private Sub cmdPendidikan_Click() frmDataPendidikan.Show frmUtama.Hide End Sub Private Sub mnCKetAyah_Click() RptContAyah.Show End Sub Private Sub mnCKetIbu_Click() RptContIbu.Show End Sub Private Sub mnClaputama_Click() RptContSiswa.Show End Sub Private Sub mnDtAp_Click() frmUtama.Hide frmQuotaAP.Show End Sub Private Sub mnDtAk_Click() frmQuotaAK.Show frmUtama.Hide End Sub

  Private Sub mnDtTkj_Click() frmUtama.Hide frmQuotaTKJ.Show End SubPrivate Sub mnExit_Click() Dim keluar As VbMsgBoxResult keluar = MsgBox("Anda Yakin Ingin Keluar?", vbQuestion + vbYesNo, "Exit") If (keluar = vbYes) Then frmSplashScreen.Show frmUtama.Hide End If End Sub Private Sub mnKegemaranSiswa_Click() RptKegemaran.Show End Sub Private Sub mnKesehatan_Click() RptKesehatan.Show End Sub Private Sub mnKetAyah_Click() RptAyah.Show End Sub Private Sub mnKetIbu_Click() RptIbu.Show

  End Sub Private Sub mnLapUtama_Click() RptSiswa.Show End Sub Private Sub mnPembayaran_Click() RptPembayaran.Show End Sub Private Sub mnPendidikan_Click() RptPendidikan.Show End Sub Private Sub timer1_timer() lblSelamatDatang.ForeColor = RGB(250 * Rnd, 250 * Rnd, 250 * Rnd) lblWaktu.Visible = Not lblWaktu.Visible End Sub Private Sub Form_Activate() lblWaktu.Caption = Now End Sub

  Tampilan Formulir Pengisian Data Siswa (frmDataSiswa2) Kode Program : Private Sub cboAgama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtSttb.SetFocus End Sub Private Sub cboBln_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboThn.SetFocus End Sub Private Sub cboJk_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtNamaAyah.SetFocus End Sub Private Sub cboJur_keypress(KeyAscii As Integer)

  If KeyAscii = 13 Then txtNama.SetFocus End Sub Private Sub cboTgl_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboBln.SetFocus End Sub Private Sub cboThn_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboJk.SetFocus End Sub Private Sub cmdBatal_Click() txtNoUrut.Text = "" txtInduk.Text = "" txtNisn.Text = "" cboJur.Text = "" txtNama.Text = "" txtTempatLahir.Text = "" cboTgl.Text = "" cboBln.Text = "" cboThn.Text = "" txtNamaAyah.Text = "" txtAlamat.Text = "" cboAgama.Text = "" txtSttb.Text = "" txtSKHU.Text = "" txtAsalSekolah.Text = "" txtInduk.SetFocus End Sub Private Sub cmdCari_Click() cmdSimpan.Enabled = True cmdBatal.Enabled = True Dim i As String Dim msyarat As String Dim X As String i = InputBox("Silahkan Masukkan Nomor Pendaftaran Siswa", "Search") msyarat = "No_Urut = '" & i & " ' " Adodc1.Recordset.Find msyarat If Adodc1.Recordset.EOF Then X = MsgBox("Data Tidak Ditemukan!", vbOKOnly, "Pencarian Nama Siswa") Adodc1.Recordset.MoveFirst End If End Sub Private Sub cmdNext_Click() frmDataKesehatan.Show frmDataSiswa2.Hide End Sub

  Private Sub cmdSimpan_Click() Adodc1.Recordset.Update End Sub Private Sub cmdKeluar_Click() frmUtama.Show frmDataSiswa2.Hide End Sub Private Sub cmdKembali_Click() frmUtama.Show frmDataSiswa2.Hide End Sub Private Sub cmdTambah_Click() Adodc1.Recordset.AddNew txtInduk.SetFocus cmdSimpan.Enabled = True cmdBatal.Enabled = True End Sub Private Sub Form_Load() cboJur.AddItem "AK" cboJur.AddItem "AP" cboJur.AddItem "TKJ" cboTgl.AddItem "1" cboTgl.AddItem "2" cboTgl.AddItem "3" cboTgl.AddItem "4" cboTgl.AddItem "5" cboTgl.AddItem "6" cboTgl.AddItem "7" cboTgl.AddItem "8" cboTgl.AddItem "9" cboTgl.AddItem "10" cboTgl.AddItem "11" cboTgl.AddItem "12" cboTgl.AddItem "13" cboTgl.AddItem "14" cboTgl.AddItem "15" cboTgl.AddItem "16" cboTgl.AddItem "17" cboTgl.AddItem "18" cboTgl.AddItem "19" cboTgl.AddItem "20" cboTgl.AddItem "21" cboTgl.AddItem "22" cboTgl.AddItem "23" cboTgl.AddItem "24" cboTgl.AddItem "25"

cboTgl.AddItem "26" cboTgl.AddItem "27" cboTgl.AddItem "28" cboTgl.AddItem "29" cboTgl.AddItem "30" cboTgl.AddItem "31" cboBln.AddItem "Januari" cboBln.AddItem "Februari" cboBln.AddItem "Maret" cboBln.AddItem "April" cboBln.AddItem "Mei" cboBln.AddItem "Juni" cboBln.AddItem "Juli" cboBln.AddItem "Agustus" cboBln.AddItem "September" cboBln.AddItem "Oktober" cboBln.AddItem "November" cboBln.AddItem "Desember" cboThn.AddItem "1998" cboThn.AddItem "1997" cboThn.AddItem "1996" cboThn.AddItem "1995" cboThn.AddItem "1994"

cboThn.AddItem "1993" cboThn.AddItem "1992" cboJk.AddItem "L" cboJk.AddItem "P" cboAgama.AddItem "Islam" cboAgama.AddItem "Kristen" cboAgama.AddItem "Hindu" cboAgama.AddItem "Budha" End Sub Private Sub timer1_timer() Label2.Visible = Not Label2.Visible End Sub Private Sub Form_Activate() cmdSimpan.Enabled = False cmdBatal.Enabled = False End Sub Private Sub txtAlamat_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboAgama.SetFocus End Sub Private Sub txtAsalSekolah_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cmdSimpan.SetFocus End Sub Private Sub txtInduk_keypress(KeyAscii As Integer)

  If KeyAscii = 13 Then txtNisn.SetFocus End Sub Private Sub txtNama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtTempatLahir.SetFocus End Sub Private Sub txtNamaAyah_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtAlamat.SetFocus End Sub Private Sub txtNisn_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboJur.SetFocus End Sub Private Sub txtSKHU_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtAsalSekolah.SetFocus End Sub Private Sub txtSttb_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtSKHU.SetFocus End Sub Private Sub txtTempatLahir_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboTgl.SetFocus End Sub

  Tampilan Formulir Pengisian Kesehatan Siswa (frmDataKesehatan) Kode Program : Private Sub cboGol_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtPenyakit.SetFocus End Sub Private Sub cmdCari_Click() cmdSimpan.Enabled = True cmdBatal.Enabled = True Dim i As String Dim msyarat As String

  Dim X As String i = InputBox("Silahkan Masukkan Nomor Pendaftaran Siswa", "Search") msyarat = "No_Urut = '" & i & " ' " Adodc1.Recordset.Find msyarat If Adodc1.Recordset.EOF Then X = MsgBox("Data Tidak Ditemukan!", vbOKOnly, "Pencarian Nama Siswa") Adodc1.Recordset.MoveFirst End If End Sub Private Sub cmdTambah_Click() Adodc1.Recordset.AddNew txtNama.SetFocus cmdSimpan.Enabled = True cmdBatal.Enabled = True End Sub Private Sub timer1_timer() Label2.Visible = Not Label2.Visible End Sub Private Sub cmdBatal_Click() txtNo.Text = "" txtNama.Text = "" cboGol.Text = "" txtPenyakit.Text = "" txtBerat.Text = "" txtTinggi.Text = "" txtNama.SetFocus End Sub Private Sub cmdKeluar_Click() frmDataKesehatan.Hide frmUtama.Show End Sub Private Sub cmdKembali_Click() frmDataSiswa2.Show frmDataKesehatan.Hide End Sub Private Sub cmdNext_Click() frmDataKesehatan.Hide frmDataPendidikan.Show End Sub Private Sub cmdSimpan_Click() Adodc1.Recordset.Update End Sub Private Sub Form_Load() cboGol.AddItem "A"

cboGol.AddItem "B" cboGol.AddItem "O" cboGol.AddItem "AB" End Sub Private Sub Form_Activate() cmdSimpan.Enabled = False cmdBatal.Enabled = False End Sub Private Sub txtBerat_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtTinggi.SetFocus End Sub Private Sub txtKelainan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtBerat.SetFocus End Sub Private Sub txtNama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboGol.SetFocus End Sub Private Sub txtPenyakit_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtKelainan.SetFocus End Sub Private Sub txtTinggi_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cmdSimpan.SetFocus End Sub

  Tampilan Formulir Pengisian Pendidikan Siswa (frmDataPendidikan) Kode Program : Private Sub cboBln_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboThn.SetFocus End Sub Private Sub cboJur_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboTgl.SetFocus End Sub Private Sub cboTgl_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboBln.SetFocus End Sub Private Sub cboThn_keypress(KeyAscii As Integer)

  If KeyAscii = 13 Then cmdSimpan.SetFocus End Sub Private Sub cmdBatal_Click() txtNoUrut.Text = "" txtNama.Text = "" txtLulusan.Text = "" txtTglSttb.Text = "" txtLama.Text = "" txtKelas.Text = "" cboJur.Text = "" cboTgl.Text = "" cboBln.Text = "" txtNama.SetFocus End Sub Private Sub cmdKeluar_Click() frmDataPendidikan.Hide frmUtama.Show End Sub Private Sub cmdKembali_Click() frmDataKesehatan.Show frmDataPendidikan.Hide End Sub Private Sub cmdNext_Click(Index As Integer) frmDataPendidikan.Hide frmDataAyah.Show End Sub Private Sub cmdSimpan_Click() Adodc1.Recordset.Update End Sub Private Sub cmdTambah_Click() Adodc1.Recordset.AddNew txtNama.SetFocus cmdSimpan.Enabled = True cmdBatal.Enabled = True End Sub Private Sub CommandCari_Click() cmdSimpan.Enabled = True cmdBatal.Enabled = True Dim i As String Dim msyarat As String Dim X As String i = InputBox("Silahkan Masukkan Nomor Pendaftaran Siswa", "Search") msyarat = "No_Urut = '" & i & " ' " 'cari data yang nomornya sama dengan No_Urut Adodc1.Recordset.Find msyarat

  If Adodc1.Recordset.EOF Then X = MsgBox("Data Tidak Ditemukan!", vbOKOnly, "Pencarian Nama Siswa") Adodc1.Recordset.MoveFirst End If End Sub Private Sub Form_Load() cboJur.AddItem "AK" cboJur.AddItem "AP" cboJur.AddItem "TKJ" cboTgl.AddItem "1" cboTgl.AddItem "2" cboTgl.AddItem "3" cboTgl.AddItem "4" cboTgl.AddItem "5" cboTgl.AddItem "6" cboTgl.AddItem "7" cboTgl.AddItem "8" cboTgl.AddItem "9" cboTgl.AddItem "10" cboTgl.AddItem "11" cboTgl.AddItem "12" cboTgl.AddItem "13" cboTgl.AddItem "14" cboTgl.AddItem "15" cboTgl.AddItem "16" cboTgl.AddItem "17" cboTgl.AddItem "18" cboTgl.AddItem "19" cboTgl.AddItem "20" cboTgl.AddItem "21" cboTgl.AddItem "22" cboTgl.AddItem "23" cboTgl.AddItem "24" cboTgl.AddItem "25" cboTgl.AddItem "26" cboTgl.AddItem "27" cboTgl.AddItem "28" cboTgl.AddItem "29" cboTgl.AddItem "30" cboTgl.AddItem "31" cboBln.AddItem "Januari" cboBln.AddItem "Februari" cboBln.AddItem "Maret" cboBln.AddItem "April" cboBln.AddItem "Mei"

cboBln.AddItem "Juni" cboBln.AddItem "Juli" cboBln.AddItem "Agustus" cboBln.AddItem "September" cboBln.AddItem "Oktober" cboBln.AddItem "November" cboBln.AddItem "Desember" cboThn.AddItem "2013" End Sub Private Sub timer1_timer() Label2.Visible = Not Label2.Visible End Sub Private Sub Form_Activate() cmdSimpan.Enabled = False cmdBatal.Enabled = False End Sub Private Sub txtBeasiswa_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtTahun.SetFocus End Sub Private Sub txtDari_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtKelas.SetFocus End Sub Private Sub txtKelas_keypress(KeyAscii As Integer)

  If KeyAscii = 13 Then cboJur.SetFocus End Sub Private Sub txtLama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtBeasiswa.SetFocus End Sub Private Sub txtLulusan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtTglSttb.SetFocus End Sub Private Sub txtNama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtLulusan.SetFocus End Sub Private Sub txtTahun_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtDari.SetFocus End Sub Private Sub txtTglSttb_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtLama.SetFocus End Sub

  Tampilan Formulir Pengisian Keterangan Tentang Ayah / Wali Siswa (frmDataAyah) Kode Program : Private Sub cboAgama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtPekerjaan.SetFocus End Sub Private Sub cboBln_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtTahun.SetFocus End Sub Private Sub cboKetAyah_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cmdSimpan.SetFocus End Sub Private Sub cboKwn_keypress(KeyAscii As Integer)

  If KeyAscii = 13 Then cboPendidikan.SetFocus End Sub Private Sub cboPendidikan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtAlamat.SetFocus End Sub Private Sub cboPenghasilan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboKetAyah.SetFocus End Sub Private Sub cboTgl_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboBln.SetFocus End Sub Private Sub cmdBack_Click(Index As Integer) frmDataPendidikan.Show frmDataAyah.Hide End Sub Private Sub cmdBatal_Click() txtNoUrut.Text = "" txtNama.Text = "" txtNamaAyah.Text = "" txtTempatLahir.Text = "" cboTgl.Text = "" cboBln.Text = "" txtTahun.Text = "" cboKwn.Text = "" cboPendidikan.Text = "" txtAlamat.Text = "" cboAgama.Text = "" txtPekerjaan.Text = "" cboPenghasilan.Text = "" cboKetAyah.Text = "" txtNama.SetFocus End Sub Private Sub cmdKeluar_Click() frmDataAyah.Hide frmUtama.Show End Sub Private Sub cmdNext_Click(Index As Integer) frmDataIbu.Show frmDataAyah.Hide End Sub Private Sub cmdSimpan_Click() Adodc1.Recordset.Update End Sub Private Sub cmdTambah_Click() Adodc1.Recordset.AddNew txtNama.SetFocus

cmdSimpan.Enabled = True cmdBatal.Enabled = True End Sub Private Sub CommandCari_Click() cmdSimpan.Enabled = True cmdBatal.Enabled = True Dim i As String Dim msyarat As String Dim X As String i = InputBox("Silahkan Masukkan Nomor Pendaftaran Siswa", "Search") msyarat = "No_Urut = '" & i & " ' " 'cari data yang nomornya sama dengan No_Urut Adodc1.Recordset.Find msyarat If Adodc1.Recordset.EOF Then X = MsgBox("Data Tidak Ditemukan!", vbOKOnly, "Pencarian Nama Siswa") Adodc1.Recordset.MoveFirst End If End Sub Private Sub Form_Load() cboKwn.AddItem "Indonesia" cboKwn.AddItem "Asing"

cboPendidikan.AddItem "SD" cboPendidikan.AddItem "SMP" cboPendidikan.AddItem "SMA" cboPendidikan.AddItem "SARJANA" cboPenghasilan.AddItem "Dibawah 500.000" cboPenghasilan.AddItem "500.000 - 1.000.000" cboPenghasilan.AddItem "1.000.000 - 2.000.000" cboPenghasilan.AddItem "Diatas 2.000.000" cboKetAyah.AddItem "Hidup" cboKetAyah.AddItem "Meninggal" cboTgl.AddItem "1" cboTgl.AddItem "2" cboTgl.AddItem "3" cboTgl.AddItem "4" cboTgl.AddItem "5" cboTgl.AddItem "6" cboTgl.AddItem "7" cboTgl.AddItem "8" cboTgl.AddItem "9" cboTgl.AddItem "10" cboTgl.AddItem "11" cboTgl.AddItem "12" cboTgl.AddItem "13"

cboTgl.AddItem "14" cboTgl.AddItem "15" cboTgl.AddItem "16" cboTgl.AddItem "17" cboTgl.AddItem "18" cboTgl.AddItem "19" cboTgl.AddItem "20" cboTgl.AddItem "21" cboTgl.AddItem "22" cboTgl.AddItem "23" cboTgl.AddItem "24" cboTgl.AddItem "25" cboTgl.AddItem "26" cboTgl.AddItem "27" cboTgl.AddItem "28" cboTgl.AddItem "29" cboTgl.AddItem "30" cboTgl.AddItem "31" cboBln.AddItem "Januari" cboBln.AddItem "Februari" cboBln.AddItem "Maret" cboBln.AddItem "April" cboBln.AddItem "Mei"

cboBln.AddItem "Juni" cboBln.AddItem "Juli" cboBln.AddItem "Agustus" cboBln.AddItem "September" cboBln.AddItem "Oktober" cboBln.AddItem "November" cboBln.AddItem "Desember" cboAgama.AddItem "Islam" cboAgama.AddItem "Kristen" cboAgama.AddItem "Hindu" cboAgama.AddItem "Budha" End Sub Private Sub timer1_timer() Label2.Visible = Not Label2.Visible End Sub Private Sub Form_Activate() cmdSimpan.Enabled = False cmdBatal.Enabled = False End Sub Private Sub txtAlamat_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboAgama.SetFocus End Sub Private Sub txtNama_keypress(KeyAscii As Integer)

  If KeyAscii = 13 Then txtNamaAyah.SetFocus End Sub Private Sub txtNamaAyah_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtTempatLahir.SetFocus End Sub Private Sub txtPekerjaan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboPenghasilan.SetFocus End Sub Private Sub txtTahun_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboKwn.SetFocus End Sub Private Sub txtTempatLahir_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboTgl.SetFocus End Sub

  Tampilan Formulir Pengisian Keterangan Tentang Ibu / Wali Siswa (frmDataIbu) Kode Program : Private Sub cboAgama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtPekerjaan.SetFocus End Sub Private Sub cboBln_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtTahun.SetFocus End Sub Private Sub cboKetIbu_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cmdSimpan.SetFocus End Sub Private Sub cboKwn_keypress(KeyAscii As Integer)

  If KeyAscii = 13 Then cboPendidikan.SetFocus End Sub Private Sub cboPendidikan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtAlamat.SetFocus End Sub Private Sub cboPenghasilan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboKetIbu.SetFocus End Sub Private Sub cboTgl_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboBln.SetFocus End Sub Private Sub cmdBatal_Click() txtNoUrut.Text = "" txtNama.Text = "" txtNamaIbu.Text = "" txtTempatLahir.Text = "" cboTgl.Text = "" cboBln.Text = "" txtTahun.Text = "" cboKwn.Text = "" cboPendidikan.Text = "" txtAlamat.Text = "" cboAgama.Text = "" txtPekerjaan.Text = "" cboPenghasilan.Text = "" cboKetIbu.Text = "" txtNama.SetFocus End Sub Private Sub cmdCari_Click() cmdSimpan.Enabled = True cmdBatal.Enabled = True Dim i As String Dim msyarat As String Dim X As String i = InputBox("Silahkan Masukkan Nomor Pendaftaran Siswa", "Search") msyarat = "No_Urut = '" & i & " ' " 'cari data yang nomornya sama dengan No_Urut Adodc1.Recordset.Find msyarat If Adodc1.Recordset.EOF Then X = MsgBox("Data Tidak Ditemukan!", vbOKOnly, "Pencarian Nama Siswa") Adodc1.Recordset.MoveFirst End If End Sub

  Private Sub cmdKeluar_Click() frmDataIbu.Hide frmUtama.Show End Sub Private Sub cmdKembali_Click() frmDataAyah.Show frmDataIbu.Hide End Sub Private Sub cmdNext_Click() frmKegemaran.Show frmDataIbu.Hide End Sub Private Sub cmdSimpan_Click() Adodc1.Recordset.Update txtNama.SetFocus End Sub Private Sub cmdTambah_Click() Adodc1.Recordset.AddNew txtNama.SetFocus cmdSimpan.Enabled = True cmdBatal.Enabled = True End Sub Private Sub Form_Load() cboKwn.AddItem "Indonesia" cboKwn.AddItem "Non - Indonesia" cboPendidikan.AddItem "SD" cboPendidikan.AddItem "SMP" cboPendidikan.AddItem "SMA" cboPendidikan.AddItem "SARJANA" cboPenghasilan.AddItem "Dibawah 500.000" cboPenghasilan.AddItem "500.000 - 1.000.000" cboPenghasilan.AddItem "1.000.000 - 2.000.000" cboPenghasilan.AddItem "Diatas 2.000.000" cboKetIbu.AddItem "Hidup" cboKetIbu.AddItem "Meninggal" cboTgl.AddItem "1" cboTgl.AddItem "2" cboTgl.AddItem "3" cboTgl.AddItem "4" cboTgl.AddItem "5" cboTgl.AddItem "6" cboTgl.AddItem "7" cboTgl.AddItem "8" cboTgl.AddItem "9" cboTgl.AddItem "10" cboTgl.AddItem "11"

cboTgl.AddItem "12" cboTgl.AddItem "13" cboTgl.AddItem "14" cboTgl.AddItem "15" cboTgl.AddItem "16" cboTgl.AddItem "17" cboTgl.AddItem "18" cboTgl.AddItem "19" cboTgl.AddItem "20" cboTgl.AddItem "21" cboTgl.AddItem "22" cboTgl.AddItem "23" cboTgl.AddItem "24" cboTgl.AddItem "25" cboTgl.AddItem "26" cboTgl.AddItem "27" cboTgl.AddItem "28" cboTgl.AddItem "29" cboTgl.AddItem "30" cboTgl.AddItem "31" cboBln.AddItem "Januari" cboBln.AddItem "Februari" cboBln.AddItem "Maret"

cboBln.AddItem "April" cboBln.AddItem "Mei" cboBln.AddItem "Juni" cboBln.AddItem "Juli" cboBln.AddItem "Agustus" cboBln.AddItem "September" cboBln.AddItem "Oktober" cboBln.AddItem "November" cboBln.AddItem "Desember" cboAgama.AddItem "Islam" cboAgama.AddItem "Kristen" cboAgama.AddItem "Hindu" cboAgama.AddItem "Budha" End Sub Private Sub timer1_timer() Label2.Visible = Not Label2.Visible End Sub Private Sub Form_Activate() cmdSimpan.Enabled = False cmdBatal.Enabled = False End Sub Private Sub txtAlamat_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboAgama.SetFocus

  End Sub Private Sub txtNama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtNamaIbu.SetFocus End Sub Private Sub txtNamaIbu_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtTempatLahir.SetFocus End Sub Private Sub txtPekerjaan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboPenghasilan.SetFocus End Sub Private Sub txtTahun_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboKwn.SetFocus End Sub Private Sub txtTempatLahir_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cboTgl.SetFocus End Sub

  Tampilan Formulir Pengisian Kegemaran Siswa (frmDataKegemaran) Kode Program : Private Sub cmdBatal_Click() txtNoUrut.Text = "" txtNama.Text = "" txtKesenangan.Text = "" txtOlahraga.Text = "" txtKemasyarakatan.Text = "" txtBeasiswa.Text = "" txtTahun.Text = "" txtDari.Text = "" txtNama.SetFocus

  End Sub Private Sub cmdCari_Click() cmdSimpan.Enabled = True cmdBatal.Enabled = True Dim i As String Dim msyarat As String Dim X As String i = InputBox("Silahkan Masukkan Nomor Pendaftaran Siswa", "Search") msyarat = "No_Urut = '" & i & " ' " 'cari data yang nomornya sama dengan No_Urut Adodc1.Recordset.Find msyarat If Adodc1.Recordset.EOF Then X = MsgBox("Data Tidak Ditemukan!", vbOKOnly, "Pencarian Nama Siswa") Adodc1.Recordset.MoveFirst End If End Sub Private Sub cmdKeluar_Click() frmKegemaran.Hide frmUtama.Show End Sub

  Private Sub cmdKembali_Click() frmDataIbu.Show frmKegemaran.Hide End Sub Private Sub cmdNext_Click() frmPembayaran.Show frmKegemaran.Hide End Sub Private Sub cmdSimpan_Click() Adodc1.Recordset.Update End Sub Private Sub cmdTambah_Click() Adodc1.Recordset.AddNew txtNama.SetFocus cmdSimpan.Enabled = True cmdBatal.Enabled = True End Sub Private Sub timer1_timer() Label2.Visible = Not Label2.Visible End Sub Private Sub Form_Activate() cmdSimpan.Enabled = False cmdBatal.Enabled = False

  End Sub Private Sub txtKemasyarakatan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cmdSimpan.SetFocus End Sub Private Sub txtKesenangan_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtOlahraga.SetFocus End Sub Private Sub txtNama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtKesenangan.SetFocus End Sub Private Sub txtOlahraga_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtKemasyarakatan.SetFocus End Sub

  Tampilan Formulir Pengisian Pembayaran Pendaftaran (frmDataPembayaran) Kode Program : Private Sub cmdBatal_Click() txtNoUrut.Text = "" txtNama.Text = "" txtBayar1.Text = "" txtBayar2.Text = "" txtBayar3.Text = "" txtTotal.Text = "" txtNama.SetFocus End Sub

  Private Sub cmdCari_Click() cmdSimpan.Enabled = True cmdBatal.Enabled = True Dim i As String Dim msyarat As String Dim X As String i = InputBox("Silahkan Masukkan Nomor Pendaftaran Siswa", "Search") msyarat = "No_Urut = '" & i & " ' " Adodc1.Recordset.Find msyarat If Adodc1.Recordset.EOF Then X = MsgBox("Data Tidak Ditemukan!", vbOKOnly, "Pencarian Nama Siswa") Adodc1.Recordset.MoveFirst End If End Sub Private Sub cmdKeluar_Click() MsgBox "Pendaftaran Sukses, Terima Kasih !", , "== Exit ==" frmUtama.Show frmPembayaran.Hide End Sub Private Sub cmdKembali_Click() frmKegemaran.Show frmPembayaran.Hide End Sub Private Sub cmdSimpan_Click() Adodc1.Recordset.Update End Sub Private Sub cmdHitung_Click() txtTotal.Text = Val(txtBayar1.Text) + Val(txtBayar2.Text)

  • Val(txtBayar3.Text) txtTotal.SetFocus End Sub Private Sub cmdTambah_Click() Adodc1.Recordset.AddNew txtNama.SetFocus cmdSimpan.Enabled = True cmdBatal.Enabled = True End Sub Private Sub timer1_timer() Label2.Visible = Not Label2.Visible End Sub Private Sub Form_Activate() cmdSimpan.Enabled = False cmdBatal.Enabled = False End Sub

  Private Sub txtBayar1_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtBayar2.SetFocus End Sub Private Sub txtBayar2_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtBayar3.SetFocus End Sub Private Sub txtBayar3_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cmdHitung.SetFocus End Sub Private Sub txtNama_keypress(KeyAscii As Integer) If KeyAscii = 13 Then txtBayar1.SetFocus End Sub Private Sub txtTotal_keypress(KeyAscii As Integer) If KeyAscii = 13 Then cmdSimpan.SetFocus End Sub

  Tampilan Jumlah Siswa Pendaftar Jurusan Akuntansi(frmQuotaAk) Kode Program : Option Explicit Dim Conn As New AdodB.Connection Dim AdoPSB As New AdodB.Recordset Private Sub cmdCetak_Click() Me.PrintForm End Sub Private Sub cmdTutup_Click() frmUtama.Show frmQuotaAK.Hide

  End Sub Private Sub Form_Load() Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Formulir_PSB.mdb;Persist Security Info=False" Set AdoPSB = New AdodB.Recordset AdoPSB.Open "SELECT * FROM Data_Siswa where Jurusan ='AK' ", Conn, adOpenStatic, adLockOptimistic Call tampil_isi_listview End Sub Sub tampil_isi_listview() Dim iList As ListItem Dim i As Byte i = 1 With AdoPSB ListView1.ListItems.Clear Do Until .EOF Set iList = ListView1.ListItems.Add(, , i & ".") iList.SubItems(1) = Format(.Fields(0)) iList.SubItems(2) = Format(.Fields(3)) iList.SubItems(3) = Format(.Fields(4)) iList.SubItems(4) = Format(.Fields(15)) .MoveNext i = i + 1

  Loop ListView1.Visible = True End With End Sub Tampilan Jumlah Siswa Pendaftar Jurusan Administrasi Perkantoran(frmQuotaAp) Kode Program : Option Explicit Dim Conn As New AdodB.Connection Dim AdoPSB As New AdodB.Recordset Private Sub cmdCetak_Click() Me.PrintForm

  End Sub Private Sub cmdTutup_Click() frmQuotaAP.Hide frmUtama.Show End Sub Private Sub Form_Load() Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Formulir_PSB.mdb;Persist Security Info=False" Set AdoPSB = New AdodB.Recordset AdoPSB.Open "SELECT * FROM Data_Siswa where Jurusan ='AP' ", Conn, adOpenStatic, adLockOptimistic Call tampil_isi_listview End Sub Sub tampil_isi_listview() Dim iList As ListItem Dim i As Byte i = 1 With AdoPSB ListView1.ListItems.Clear Do Until .EOF Set iList = ListView1.ListItems.Add(, , i & ".") iList.SubItems(1) = Format(.Fields(0)) iList.SubItems(2) = Format(.Fields(3)) iList.SubItems(3) = Format(.Fields(4)) iList.SubItems(4) = Format(.Fields(15)) .MoveNext i = i + 1 Loop ListView1.Visible = True End With End Sub Tampilan Jumlah Siswa Pendaftar Jurusan Teknik Komputer Jaringan (frmQuotaTkj) Kode Program : Option Explicit Dim Conn As New AdodB.Connection

  Dim AdoPSB As New AdodB.Recordset Private Sub cmdCetak_Click() Me.PrintForm End Sub Private Sub cmdTutup_Click() frmUtama.Show frmQuotaTKJ.Hide End Sub Private Sub Form_Load() Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Formulir_PSB.mdb;Persist Security Info=False" Set AdoPSB = New AdodB.Recordset AdoPSB.Open "SELECT * FROM Data_Siswa where Jurusan ='TKJ' ", Conn, adOpenStatic, adLockOptimistic Call tampil_isi_listview End Sub Sub tampil_isi_listview() Dim iList As ListItem Dim i As Byte i = 1 With AdoPSB ListView1.ListItems.Clear Do Until .EOF

  Set iList = ListView1.ListItems.Add(, , i & ".") iList.SubItems(1) = Format(.Fields(0)) iList.SubItems(2) = Format(.Fields(3)) iList.SubItems(3) = Format(.Fields(4)) iList.SubItems(4) = Format(.Fields(15)) .MoveNext i = i + 1 Loop ListView1.Visible = True End With End Sub

  Tampilan Laporan Utama

  Tampilan Laporan Data Kesehatan Siswa Tampilan Laporan Data Pendidikan Siswa

  Tampilan Laporan Data Ayah / Wali Siswa

  Tampilan Laporan Data Ibu / Wali Siswa

  Tampilan Laporan Data Kegemaran Siswa Tampilan Laporan Data Pembayaran Siswa