L A M P I R A N
LISTING PROGRAM PROGRAM FORM LOGIN Dim A As Byte Dim B As Byte Private Sub Command2_Click() Unload Me Private Sub Form_Load() 'batasi jumlah karakter Textuser.MaxLength = 30 Textpass.MaxLength = 10 'nama dan password diubah menjadi karakter X Textpass.PasswordChar = "*" Textpass.Enabled = False Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single) Private Sub Textuser_KeyPress(Keyascii As Integer) 'ubah karakter jadi besar semua 'jika menekan ESC form ditutup If Keyascii = 27 Then Unload Me 'jika menekan enter setelah mengisi nama, maka..
If Keyascii = 13 Then 'buka database Call BukaDB 'cari nama pasword yang diketik RSpasword.Open "Select user from pasword where user ='" & Textuser & "'", Conn 'jika tidak ditemukan, maka If RSpasword.EOF Then 'batasi akses ke nama pasword 3 kali kesempatan A = A + 1 If 1 - A = 0 Then MsgBox "Kesempatan ke " & A & " Salah" & Chr(13) & _ Textuser = "" "Nama '" & Textuser & "' tidak dikenal" Textuser.SetFocus ElseIf 2 - A = 0 Then MsgBox "Kesempatan ke " & A & " Salah" & Chr(13) & _ Textuser = "" "Nama '" & Textuser & "' tidak dikenal" Textuser.SetFocus ElseIf 3 - A = 0 Then MsgBox "Kesempatan ke " & A & " Salah" & Chr(13) & _ & _ "Nama '" & Textuser & "' tidak dikenal" & Chr(13) "Kesempatan habis, Ulangi dari awal" 'End Unload Me Else 'jika nama pasword benar, maka nama pasword menjadi false Textuser.Enabled = False
'password pasword menjadi true dan menjadi fokus kursor Textpass.Enabled = True Textpass.SetFocus 'coding ini sama dengan nama pasword Private Sub Textpass_KeyPress(Keyascii As Integer) If Keyascii = 27 Then Unload Me Dim Kodepasword As String Dim Namapasword As String If Keyascii = 13 Then Call BukaDB RSpasword.Open "Select * from pasword where user ='" & Textuser & "' and pasword='" & Textpass & "'", Conn If RSpasword.EOF Then B = B + 1 If 1 - B = 0 Then MsgBox "Kesempatan ke " & B & " Salah" Textpass = "" Textpass.SetFocus ElseIf 2 - B = 0 Then MsgBox "Kesempatan ke " & B & " Salah" Textpass = "" Textpass.SetFocus ElseIf 3 - B = 0 Then MsgBox "Kesempatan ke " & B & " Salah" 'End
Unload Me Else 'jika nama dan password benar, maka...tutup form pasword Unload Me 'panggil menu utama FRM_menu.Show Namapasword = RSpasword!User TxtKodeKsr = Kodepasword Textuser = Namapasword 'nama dan kode tampil di form pembelian 'program ini berfungsi untuk mengubah 'format tanggal mejadi DDMMYY karena nomor faktur pembelian 'akan muncul otomatis diambil dari tanggal sistem komputer Sub PeriksaTanggal() Dim CekTanggal As String Ulangi: CekTanggal = Date If CekTanggal <> Format(Date, "dd/mm/yy") Then If MsgBox("Ubah Format tanggal jadi dd/mm/yy di Control Panel, Regional Settings " & vbcrlf & _ "Customize.., Date, Short Date Style, karena program tidak dapat dijalankan!", vbcritical + vbokcancel, "Cek Tanggal") = vbok And CekTanggal <> Format(Date, "dd/mm/yy") Then Else Call Shell("rundll32.exe shell32.dll," & "Control_RunDLL INTL.CPL,,4", 1)
End Pesan = MsgBox("Format Tanggal Sudah diganti..?", vbyesno, "Konfirmasi") If Pesan = vbno Then If CekTanggal <> Format(Date, "dd/mm/yy") Then GoTo Ulangi Else GoTo Ulangi PROGRAM FORM MENU Private Sub Image1_Click() Private Sub mncetdat_click() Formcetsiswa.Show Private Sub Mnex_Click() Unload Me Private Sub mnguru_click(index As Integer) DATAGURU.Show Private Sub Mnlap_Click()
Form6.Show Private Sub mnmtp_click() Formmatpel.Show Private Sub mnni_click(index As Integer) Form1.Show Private Sub mnnilai_click() Unload Me Private Sub mnpel_click() cetguru.show Private Sub Mnpelajaran_Click() Formcetnil.Show Private Sub MnSis_Click() Frm_biosiswa.Show
FORM DATA SISWA Dim mvbookmark As Variant Private Sub Form_Activate() Call BukaDB Conn.CursorLocation = aduseclient RSDATA_SISWA.Open "select * from DATA_SISWA", Conn With RSDATA_SISWA If Not (.BOF And.EOF) Then mvbookmark =.Bookmark End With Set DataGrid1.DataSource = RSDATA_SISWA.DataSource Function CariGrid() Call BukaDB 'mencari kode DATA_SISWA tang ada dalam grid di kolom 0 RSDATA_SISWA.Open "Select * From DATA_SISWA where NIS='" & DataGrid1.Columns(0) & "'", Conn End Function Private Sub DataGrid1_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode 'jika menekan enter setelah memilih data Case vbkeyreturn 'jika cmdedit caption-nya simpan maka If CmdEdit.Caption = "&Simpan" Then 'panggil prosedur SelectAllVisible1 Call SelectAllVisible1 Text2.SetFocus
'jika cmdhapus caption-nya hapus maka ElseIf CmdHapus.Caption = "&Hapus" Then 'panggil prosedur SelectAllVisible2 Call SelectAllVisible2 Case vbkeyescape KondisiAwal CmdHapus.SetFocus End Select Sub SelectAllVisible1() 'jika text1 tidak sama dengan isi grid kolom 0 maka If Text1 <> DataGrid1.Columns(0) Then 'ubah text1 menjadi isi grid kolom 0 (NIS) Text1 = DataGrid1.Columns(0) 'panggil prosedur caridata Call CariData 'text1 (NIS) dinonaktifkan Text1.Enabled = False 'pindahkan isi grid kolom 0 ke text1 dan seterusnya Text1 = DataGrid1.Columns(0) Text2 = DataGrid1.Columns(1) Text3 = DataGrid1.Columns(2) Text4 = DataGrid1.Columns(3) Text5 = DataGrid1.Columns(4) Text2.SetFocus
Sub SelectAllVisible2() If Text1 <> DataGrid1.Columns(0) Then Text1 = DataGrid1.Columns(0) Call CariData Text1.Enabled = False Text1 = DataGrid1.Columns(0) Text2 = DataGrid1.Columns(1) Text3 = DataGrid1.Columns(2) Text4 = DataGrid1.Columns(3) Text5 = DataGrid1.Columns(4) 'jika semua textbox telah terisi dan kode DATA_SISWA ditemukan 'munculkan pesan penghapusan Pesan = MsgBox("Yakin akan dihapus..?", vbyesno, "Konfirmasi") 'jika dijawab YES If Pesan = vbyes Then 'hapus data Dim SQLHapus As String & "'" SQLHapus = "Delete From DATA_SISWA where NIS= '" & Text1 Conn.Execute SQLHapus CmdRefresh_Click DataGrid1.Refresh KondisiAwal CmdHapus.SetFocus Else 'jika dijawab NO kembali ke kondisi awal KondisiAwal CmdHapus.SetFocus
Private Sub Command1_Click() FRM_TES.Show Sub Form_Load() Call BukaDB Text2.MaxLength = 30 Text3.MaxLength = 10 KondisiAwal Private Sub CmdInput_Click() If Cmdinput.Caption = "&Input" Then Else Cmdinput.Caption = "&Simpan" CmdEdit.Enabled = False CmdHapus.Enabled = False SiapIsi KosongkanText Text1.SetFocus If Text1 = "" Or Text2 = "" Or Text3 = "" Or Text4 = "" Or Combo1 = "" Or Combo2 = "" Or Text7 = "" Or Text8 = "" Or Text9 = "" Or Text10 = "" Or Text11 = "" Or Text12 = "" Or Text18 = "" Or Text19 = "" Or Text20 = "" Or Text21 = "" Or Text22 = "" Then Else MsgBox "Data Belum Lengkap...!"
Dim NAMA As String NAMA = "Insert Into DATA_SISWA(NIS,NAMA_SISWA,TEMPAT_LAHIR,TANGGAL_LAHIR,AGAMA,JENIS_KELA MIN,ALAMAT,NAMA_AYAH,NAMA_IBU,PEKERJAAN,TELEPONOR,ALAMATORTU,NAMA_WAL I,PEKERJAANWAL,TELEPONWAL,HUBUNGAN_WALI,ALAMAT_WALI,NAMA_SEKOLAH,NO_S TTB,TAHUN,TANGGAL,DIKELAS) values('" & Text1 & "','" & Text2 & "','" & Text3 & "','" & Text4 & "','" & Combo1 & "','" & Combo2 & "','" & Text7 & "','" & Text8 & "','" & Text9 & "','" & Text10 & "','" & Text11 & "','" & Text12 & "','" & Text13 & "','" & Text14 & "','" & Text15 & "','" & Text16 & "','" & Text17 & "','" & Text18 & "','" & Text19 & "','" & Text20 & "','" & Text21 & "','" & Text22 & "')" Conn.Execute NAMA KondisiAwal Private Sub SiapIsi() Text1.Enabled = True Text2.Enabled = True Text3.Enabled = True Text4.Enabled = True Combo1.Enabled = True Combo2.Enabled = True Text7.Enabled = True Text8.Enabled = True Text9.Enabled = True Text10.Enabled = True Text11.Enabled = True Text12.Enabled = True Text13.Enabled = True Text14.Enabled = True Text15.Enabled = True Text16.Enabled = True
Text17.Enabled = True Text18.Enabled = True Text19.Enabled = True Text20.Enabled = True Text21.Enabled = True Text22.Enabled = True Private Sub KondisiAwal() KosongkanText TidakSiapIsi Cmdinput.Caption = "&Input" CmdEdit.Caption = "&Edit" CmdHapus.Caption = "&Hapus" Cmdtutup.Caption = "&Tutup" Cmdinput.Enabled = True CmdEdit.Enabled = True CmdHapus.Enabled = True Private Sub KosongkanText() Text1 = "" Text2 = "" Text3 = "" Text4 = "" Combo1 = "" Combo2 = "" Text7 = "" Text8 = ""
Text9 = "" Text10 = "" Text11 = "" Text12 = "" Text13 = "" Text14 = "" Text15 = "" Text16 = "" Text17 = "" Text18 = "" Text19 = "" Text20 = "" Text21 = "" Text22 = "" Private Sub TidakSiapIsi() Text1.Enabled = False Text2.Enabled = False Text3.Enabled = False Text4.Enabled = False Combo1.Enabled = False Combo2.Enabled = False Text7.Enabled = False Text8.Enabled = False Text9.Enabled = False Text10.Enabled = False Text11.Enabled = False Text12.Enabled = False Text13.Enabled = False Text14.Enabled = False
Text15.Enabled = False Text16.Enabled = False Text17.Enabled = False Text18.Enabled = False Text19.Enabled = False Text20.Enabled = False Text21.Enabled = False Text22.Enabled = False Private Sub CmdEdit_Click() If CmdEdit.Caption = "&Edit" Then Else Cmdinput.Enabled = False CmdEdit.Caption = "&Simpan" CmdHapus.Enabled = False Cmdtutup.Caption = "&Batal" SiapIsi Text1.SetFocus If Text2 = "" Or Text3 = "" Or Text4 = "" Or Combo1 = "" Or Combo2 = "" Or Text7 = "" Or Text8 = "" Or Text9 = "" Or Text10 = "" Or Text11 = "" Or Text12 = "" Or Text18 = "" Or Text19 = "" Or Text20 = "" Or Text21 = "" Or Text22 = "" Then Else MsgBox "Masih Ada Data Yang Kosong" Dim SQLEdit As String SQLEdit = "UPDATE DATA_SISWA SET NAMA_SISWA='" & Text2 & "',TEMPAT_LAHIR='" & Text3 & "', TANGGAL_LAHIR='" & Text4 & "', AGAMA='" & Combo1 & "', JENIS_KELAMIN='" & Combo2 & "', ALAMAT='" & Text7 & "', NAMA_AYAH='" & Text8 & "', NAMA_IBU='" & Text9 & "',PEKERJAAN='" & Text10 & "',TELEPONOR='" & Text11 & "', ALAMATORTU='" & Text12 & "', NAMA_WALI='" & Text13 & "',PEKERJAANWAL='" & Text14 & "', TELEPONWAL='" & Text15 & "', HUBUNGAN_WALI='" & Text17 & "', ALAMAT_WALI='" & Text16 & "', NAMA_SEKOLAH='" & Text18 & "', NO_STTB='" & Text19 & "', TAHUN='" &
Text20 & "', TANGGAL='" & Text21 & "',DIKELAS='" & Text22 & "' WHERE NIS ='" & Text1 & "'" Conn.Execute SQLEdit KondisiAwal Private Sub CmdHapus_Click() If CmdHapus.Caption = "&Hapus" Then Cmdinput.Enabled = False CmdEdit.Enabled = False Cmdtutup.Caption = "&Batal" KosongkanText SiapIsi Text1.SetFocus Private Sub CmdTutup_Click() Select Case Cmdtutup.Caption Case "&Tutup" Unload Me Case "&Batal" TidakSiapIsi KondisiAwal End Select
Private Sub mnkeluar_click() Unload Me Private Sub Text1_KeyPress(Keyascii As Integer) If Keyascii = 13 Then If Len(Text1) < 4 Then MsgBox "Kode Harus 4 Digit" Text1.SetFocus Else Text2.SetFocus If Cmdinput.Caption = "&Simpan" Then Call CariData If Not RSDATA_SISWA.EOF Then TampilkanData MsgBox "Kode Adm Sudah Ada" KosongkanText Text1.SetFocus Else Text2.SetFocus If CmdEdit.Caption = "&Simpan" Then Call CariData If Not RSDATA_SISWA.EOF Then TampilkanData
Text1.Enabled = False Text2.SetFocus Else MsgBox "Kode Adm Tidak Ada" Text1 = "" Text1.SetFocus If CmdHapus.Enabled = True Then Call CariData If Not RSDATA_SISWA.EOF Then TampilkanData Pesan = MsgBox("Yakin akan dihapus", vbyesno) If Pesan = vbyes Then Dim Hapus As String Text1 & "'" Hapus = "Delete From data_siswa where NIS= '" & Conn.Execute Hapus KondisiAwal Else KondisiAwal CmdHapus.SetFocus Else MsgBox "Data Tidak ditemukan" Text1.SetFocus
Private Sub Text2_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text3.SetFocus Private Sub Text3_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text4.SetFocus Private Sub Text4_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Combo1.SetFocus Private Sub Combo1_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Combo2.SetFocus Private Sub combo2_keypress(keyascii As Integer) If Keyascii = 13 Then Text7.SetFocus Private Sub Text7_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text8.SetFocus Private Sub Text8_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text9.SetFocus
Private Sub Text9_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text10.SetFocus Private Sub Text10_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text11.SetFocus Private Sub Text11_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text12.SetFocus Private Sub Text12_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text13.SetFocus Private Sub Text13_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text14.SetFocus Private Sub Text14_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text15.SetFocus Private Sub Text15_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text16.SetFocus Private Sub Text16_KeyPress(Keyascii As Integer)
If Keyascii = 13 Then Text17.SetFocus Private Sub Text17_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text18.SetFocus Private Sub Text18_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text19.SetFocus Private Sub Text19_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text20.SetFocus Private Sub Text20_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text21.SetFocus Private Sub Text21_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text22.SetFocus Private Sub Text22_KeyPress(Keyascii As Integer) If Keyascii = 13 Then If Cmdinput.Enabled = True Then Cmdinput.SetFocus ElseIf CmdEdit.Enabled = True Then CmdEdit.SetFocus
Function CariData() Call BukaDB RSDATA_SISWA.Open "Select * From DATA_SISWA where NIS='" & Text1 & "'", Conn End Function Private Sub TampilkanData() With RSDATA_SISWA If Not RSDATA_SISWA.EOF Then Text2 = RSDATA_SISWA!NAMA_SISWA Text3 = RSDATA_SISWA!TEMPAT_LAHIR Text4 = RSDATA_SISWA!TANGGAL_LAHIR Combo1 = RSDATA_SISWA!AGAMA Combo2 = RSDATA_SISWA!JENIS_KELAMIN Text7 = RSDATA_SISWA!ALAMAT Text8 = RSDATA_SISWA!NAMA_AYAH Text9 = RSDATA_SISWA!NAMA_IBU Text10 = RSDATA_SISWA!PEKERJAAN Text11 = RSDATA_SISWA!TELEPONOR Text12 = RSDATA_SISWA!ALAMATORTU Text13 = RSDATA_SISWA!NAMA_WALI Text14 = RSDATA_SISWA!PEKERJAANWAL Text15 = RSDATA_SISWA!TELEPONWAL Text16 = RSDATA_SISWA!HUBUNGAN_WALI Text17 = RSDATA_SISWA!ALAMAT_WALI Text18 = RSDATA_SISWA!NAMA_SEKOLAH Text19 = RSDATA_SISWA!NO_STTB Text20 = RSDATA_SISWA!TAHUN Text21 = RSDATA_SISWA!TANGGAL
Text22 = RSDATA_SISWA!DIKELAS End With Private Sub CmdRefresh_Click() If Cmdinput.Caption = "&Simpan" Then Cmdinput.SetFocus ElseIf CmdEdit.Caption = "&Simpan" Then CmdEdit.SetFocus Call KondisiAwal Form_Activate Private Sub mnawal_click() frm_awal.show Private Sub mnguru_click() Form1.Show Private Sub mnsiswa_click() Frm_Data.Show
Private Sub mntes_click() FRM_TES.Show FORM DATA GURU Dim mvbookmark As Variant Private Sub Form_Activate() Call BukaDB Conn.CursorLocation = aduseclient RSguruku.Open "select * from guruku", Conn With RSguruku If Not (.BOF And.EOF) Then mvbookmark =.Bookmark End With Set DataGrid1.DataSource = RSguruku.DataSource Private Sub Command5_Click() FRM_TES.Show Function CariGrid() Call BukaDB 'mencari kode guruku tang ada dalam grid di kolom 0 RSguruku.Open "Select * From guruku where nip='" & DataGrid1.Columns(0) & "'", Conn
End Function Private Sub Command6_Click() If Command1.Caption = "&Simpan" Then Command1.SetFocus ElseIf Command2.Caption = "&Simpan" Then Command2.SetFocus Call KondisiAwal Form_Activate Private Sub DataGrid1_KeyDown(KeyCode As Integer, Shift As Integer) Select Case KeyCode 'jika menekan enter setelah memilih data Case vbkeyreturn 'jika command2 caption-nya simpan maka If Command2.Caption = "&Simpan" Then 'panggil prosedur SelectAllVisible1 Call SelectAllVisible1 Text2.SetFocus 'jika command3 caption-nya hapus maka ElseIf Command3.Caption = "&Hapus" Then 'panggil prosedur SelectAllVisible2 Call SelectAllVisible2 Case vbkeyescape KondisiAwal Command3.SetFocus
End Select Sub SelectAllVisible1() 'jika text1 tidak sama dengan isi grid kolom 0 maka If Text1 <> DataGrid1.Columns(0) Then 'ubah text1 menjadi isi grid kolom 0 (nip) Text1 = DataGrid1.Columns(0) 'panggil prosedur caridata Call CariData 'text1 (nip) dinonaktifkan Text1.Enabled = False 'pindahkan isi grid kolom 0 ke text1 dan seterusnya Text1 = DataGrid1.Columns(0) Text2 = DataGrid1.Columns(1) Text3 = DataGrid1.Columns(2) Text4 = DataGrid1.Columns(3) Text5 = DataGrid1.Columns(4) Text2.SetFocus Sub SelectAllVisible2() If Text1 <> DataGrid1.Columns(0) Then Text1 = DataGrid1.Columns(0) Call CariData Text1.Enabled = False Text1 = DataGrid1.Columns(0) Text2 = DataGrid1.Columns(1) Text3 = DataGrid1.Columns(2)
Text4 = DataGrid1.Columns(3) Text5 = DataGrid1.Columns(4) 'jika semua textbox telah terisi dan kode guruku ditemukan 'munculkan pesan penghapusan Pesan = MsgBox("Yakin akan dihapus..?", vbyesno, "Konfirmasi") 'jika dijawab YES If Pesan = vbyes Then 'hapus data Dim SQLHapus As String "'" SQLHapus = "Delete From guruku where nip= '" & Text1 & Conn.Execute SQLHapus Command6_Click DataGrid1.Refresh KondisiAwal Command3.SetFocus Else 'jika dijawab NO kembali ke kondisi awal KondisiAwal Command3.SetFocus Sub Form_Load() KondisiAwal
Function CariData() Call BukaDB RSguruku.Open "Select * From guruku where nip='" & Text1 & "'", Conn End Function Private Sub KosongkanText() Text1 = "" Text2 = "" Text3 = "" Text4 = "" Combo1 = "" Combo2 = "" Text7 = "" Text8 = "" Text9 = "" Text10 = "" Combo3 = "" Text12 = "" Private Sub SiapIsi() Text1.Enabled = True Text2.Enabled = True Text3.Enabled = True Text4.Enabled = True Combo1.Enabled = True
Combo2.Enabled = True Text7.Enabled = True Text8.Enabled = True Text9.Enabled = True Text10.Enabled = True Combo3.Enabled = True Text12.Enabled = True Private Sub TidakSiapIsi() Text1.Enabled = False Text2.Enabled = False Text3.Enabled = False Text4.Enabled = False Combo1.Enabled = False Combo2.Enabled = False Text7.Enabled = False Text8.Enabled = False Text9.Enabled = False Text10.Enabled = False Combo3.Enabled = False Text12.Enabled = Fals Private Sub KondisiAwal() KosongkanText TidakSiapIsi Command1.Caption = "&Input" Command2.Caption = "&Edit"
Command3.Caption = "&Hapus" Command4.Caption = "&Tutup" Command1.Enabled = True Command2.Enabled = True Command3.Enabled = True Private Sub TampilkanData() With RSguruku If Not RSguruku.EOF Then Text2 = RSguruku!namaguru Text3 = RSguruku!tmptlhir Text4 = RSguruku!tgllhir Combo1 = RSguruku!agamagru Combo2 = RSguruku!jenisklm Text7 = RSguruku!alamatgru Text8 = RSguruku!pend Text9 = RSguruku!golongan Text10 = RSguruku!matapel Combo3 = RSguruku!statusguru Text12 = RSguruku!telepon End With Private Sub Command1_Click() If Command1.Caption = "&Input" Then Command1.Caption = "&Simpan" Command2.Enabled = False Command3.Enabled = False
Else Command4.Caption = "&Batal" SiapIsi KosongkanText Text1.SetFocus If Text1 = "" Or Text2 = "" Or Text3 = "" Or Combo2 = "" Or Text7 = "" Or Text8 = "" Or Text9 = "" Or Text10 = "" Or Combo3 = "" Or Text12 = "" Then Else MsgBox "Data Belum Lengkap...!" Dim SQLTambah As String SQLTambah = "Insert Into guruku (nip,namaguru,tmptlhir,tgllhir,agamagru,jenisklm,alamatgru,pend,golon gan,matapel,statusguru,telepon) values ('" & Text1 & "','" & Text2 & "','" & Text3 & "','" & Text4 & "','" & Combo1 & "','" & Combo2 & "','" & Text7 & "','" & Text8 & "','" & Text9 & "','" & Text10 & "','" & Combo3 & "','" & Text12 & "')" Conn.Execute SQLTambah KondisiAwal Private Sub Command2_Click() If Command2.Caption = "&Edit" Then Command1.Enabled = False Command2.Caption = "&Simpan" Command3.Enabled = False Command4.Caption = "&Batal" SiapIsi Text1.SetFocus Else
If Text2 = "" Or Text3 = "" Or Text4 = "" Or Combo1 = "" Or Combo2 = "" Or Text7 = "" Or Text8 = "" Or Text9 = "" Or Text10 = "" Or Combo3 = "" Or Text12 = "" Then Else MsgBox "Masih Ada Data Yang Kosong" 'edit data Dim SQLEdit As String SQLEdit = "Update guruku Set namaguru= '" & Text2 & "', tmptlhir='" & Text3 & "', tgllhir='" & Text4 & "',agamagru='" & Combo1 & "',jenisklm='" & Combo2 & "',alamatgru='" & Text7 & "',pend='" & Text8 & "',golongan='" & Text9 & "',statusguru='" & Combo3 & "',matapel='" & Text10 & "',telepon='" & Text12 & "' where nip='" & Text1 & "'" Conn.Execute SQLEdit KondisiAwal Private Sub Command3_Click() If Command3.Caption = "&Hapus" Then Command1.Enabled = False Command2.Enabled = False Command4.Caption = "&Batal" KosongkanText SiapIsi Text1.SetFocus Private Sub Command4_Click() Select Case Command4.Caption Case "&Tutup" Unload Me
Case "&Batal" TidakSiapIsi KondisiAwal End Select Private Sub Text1_KeyPress(Keyascii As Integer) If Keyascii = 13 Then If Len(Text1) < 2 Then MsgBox "Kode Harus 5 Digit" Text1.SetFocus Else Text2.SetFocus If Command1.Caption = "&Simpan" Then Call CariData If Not RSguruku.EOF Then TampilkanData MsgBox "Kode guruku Sudah Ada" KosongkanText Text1.SetFocus Else Text2.SetFocus If Command2.Caption = "&Simpan" Then Call CariData
If Not RSguruku.EOF Then TampilkanData Text1.Enabled = False Text2.SetFocus Else MsgBox "Kode guruku Tidak Ada" Text1 = "" Text1.SetFocus If Command3.Enabled = True Then Call CariData If Not RSguruku.EOF Then TampilkanData Pesan = MsgBox("Yakin akan dihapus", vbyesno) If Pesan = vbyes Then Dim SQLHapus As String Text1 & "'" SQLHapus = "Delete From guruku where nip= '" & Conn.Execute SQLHapus KondisiAwal Else KondisiAwal Command3.SetFocus Else MsgBox "Data Tidak ditemukan" Text1.SetFocus
Private Sub Text2_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text3.SetFocus Private Sub Text3_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text4.SetFocus Private Sub Text4_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Combo1.SetFocus Private Sub Combo1_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Combo2.SetFocus Private Sub combo2_keypress(keyascii As Integer) If Keyascii = 13 Then Text7.SetFocus Private Sub Text7_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text8.SetFocus Private Sub Text8_KeyPress(Keyascii As Integer)
If Keyascii = 13 Then Text9.SetFocus Private Sub Text9_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text10.SetFocus Private Sub Text10_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Combo3.SetFocus Private Sub combo3_keypress(keyascii As Integer) If Keyascii = 13 Then Text12.SetFocus Private Sub Text12_KeyPress(Keyascii As Integer) If Keyascii = 13 Then If Command1.Enabled = True Then Command1.SetFocus ElseIf Command2.Enabled = True Then Command2.SetFocus
FORM NILAI Private Sub Form_Activate() Call BukaDB RSpelajaran.Open "pelajaran", Conn Combo1.Clear Do Until RSpelajaran.EOF Combo1.AddItem RSpelajaran!KELAS RSpelajaran.MoveNext Loop Private Sub Command5_Click() FRM_menu.Show Private Sub Form_Load() KondisiAwal Private Sub KondisiAwal() KosongkanText TidakSiapIsi Command1.Caption = "&Input" Command2.Caption = "&Edit" Command3.Caption = "&Hapus" Command4.Caption = "&Tutup" Command1.Enabled = True Command2.Enabled = True
Command3.Enabled = True Cmdjumlah.Enabled = True Private Sub KosongkanText() Text1 = "" Text13 = "" Combo1 = "" Text4 = "" Text5 = "" Text6 = "" Text7 = "" Text8 = "" Text9 = "" Text10 = "" Text11 = "" Text12 = "" Text14 = "" Label18 = "" Private Sub SiapIsi() Text1.Enabled = True Text13.Enabled = True Combo1.Enabled = True Text4.Enabled = True Text5.Enabled = True Text6.Enabled = True
Text7.Enabled = True Text8.Enabled = True Text9.Enabled = True Text10.Enabled = True Text11.Enabled = True Text12.Enabled = True Text14.Enabled = True Label18.Enabled = True Private Sub TidakSiapIsi() Text1.Enabled = False Text13.Enabled = False Combo1.Enabled = False Text4.Enabled = False Text5.Enabled = False Text6.Enabled = False Text7.Enabled = False Text8.Enabled = False Text9.Enabled = False Text10.Enabled = False Text11.Enabled = False Text12.Enabled = False Text14.Enabled = False Label18.Enabled = False Function CariData() Call BukaDB
RSNILAI.Open "Select * From NILAI where NIS ='" & Text1 & "'", Conn End Function Private Sub TampilkanData() With RSNILAI If Not RSNILAI.EOF Then End With Label18.Caption = RSNILAI!NAMA_SISWA Combo1 = RSNILAI!KELAS Text4 = RSNILAI!PENDAGAMA Text5 = RSNILAI!PKN Text6 = RSNILAI!bind Text7 = RSNILAI!mtk Text8 = RSNILAI!ipa Text9 = RSNILAI!ips Text10 = RSNILAI!KTK Text11 = RSNILAI!PENJASKES Text12 = RSNILAI!BINGRIS Text13 = RSNILAI!KOMPUTER Text14 = RSNILAI!JUMLAH Private Sub Cmdjumlah_Click() Text14.Text = Val(Text4.Text) + Val(Text5.Text) + Val(Text6.Text) + Val(Text7.Text) + Val(Text8.Text) + Val(Text9.Text) + Val(Text10.Text) + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) Private Sub Command1_Click() If Command1.Caption = "&Input" Then Command1.Caption = "&Simpan" Command2.Enabled = False
Else Command3.Enabled = False Command4.Caption = "&Batal" Cmdjumlah.Enabled = True SiapIsi KosongkanText Text1.SetFocus If Text1 = "" Or Label18 = "" Or Combo1 = "" Or Text6 = "" Or Text7 = "" Or Text8 = "" Or Text9 = "" Or Text10 = "" Or Text11 = "" Or Text12 = "" Or Text13 = "" Or Text14 = "" Then Else MsgBox "Data Belum Lengkap...!" Dim SQLTambah As String SQLTambah = "Insert Into NILAI(NIS,NAMA_SISWA,KELAS,PENDAGAMA,PKN,BIND,MTK,IPA,IPS,PENJASKES,K TK,BINGRIS,KOMPUTER,JUMLAH) values ('" & Text1 & "','" & Label18 & "','" & Combo1 & "','" & Text4 & "','" & Text5 & "','" & Text6 & "','" & Text7 & "','" & Text8 & "','" & Text9 & "','" & Text10 & "','" & Text11 & "','" & Text12 & "','" & Text13 & "','" & Text14 & "')" Conn.Execute SQLTambah KondisiAwal Private Sub Command2_Click() If Command2.Caption = "&Edit" Then Command1.Enabled = False Command2.Caption = "&Simpan" Command3.Enabled = False Command4.Caption = "&Batal" Cmdjumlah.Enabled = True
Else SiapIsi Text1.SetFocus If Label18 = "" Or Combo1 = "" Or Text4 = "" Or Text5 = "" Or Text6 = "" Or Text7 = "" Or Text8 = "" Or Text9 = "" Or Text10 = "" Or Text11 = "" Or Text12 = "" Then Else MsgBox "Masih Ada Data Yang Kosong" 'edit data Dim SQLEdit As String SQLEdit = "Update NILAI Set NAMA_SISWA= '" & Label18 & "', KELAS='" & Combo1 & "', PENDAGAMA='" & Text4 & "',PKN='" & Text5 & "',BIND='" & Text6 & "',MTK='" & Text7 & "',IPA='" & Text8 & "',IPS='" & Text9 & "',PENJASKES='" & Text10 & "',KTK='" & Text11 & "',BINGRIS='" & Text12 & "',KOMPUTER='" & Text13 & "',JUMLAH='" & Text14 & "' where NIS='" & Text1 & "'" Conn.Execute SQLEdit KondisiAwal Private Sub Command3_Click() If Command3.Caption = "&Hapus" Then Command1.Enabled = False Command2.Enabled = False Cmdjumlah.Enabled = False Command4.Caption = "&Batal" KosongkanText SiapIsi Text1.SetFocus Private Sub Command4_Click()
Select Case Command4.Caption Case "&Tutup" Unload Me Case "&Batal" TidakSiapIsi KondisiAwal End Select Private Sub Text1_KeyPress(Keyascii As Integer) If Keyascii = 27 Then Unload Me If Keyascii = 13 Then Call BukaDB 'cari nomor anggota yang diketik RSDATA_SISWA.Open "Select * from DATA_SISWA where NIS='" & Text1 & "'", Conn 'jika ditemukan If Not RSDATA_SISWA.EOF Then Else 'tampilkan namanya Label18.Caption = RSDATA_SISWA!NAMA_SISWA Combo1.SetFocus 'jika tidak ditemukan, munculkan pesan MsgBox "Nomor NIS tidak terdaftar" Text1.SetFocus Exit Sub If Command1.Caption = "&Simpan" Then Call CariData
If Not RSNILAI.EOF Then TampilkanData MsgBox "Kode nilai Sudah Ada" KosongkanText Text1.SetFocus Else Combo1.SetFocus If Command2.Caption = "&Simpan" Then Call CariData If Not RSNILAI.EOF Then TampilkanData pelajaran Text1.Enabled = False Combo1.SetFocus Else MsgBox "Kode nilai Tidak Ada" Text1 = "" Text1.SetFocus If Command3.Enabled = True Then Call CariData If Not RSNILAI.EOF Then TampilkanData Pesan = MsgBox("Yakin akan dihapus", vbyesno) If Pesan = vbyes Then
Dim SQLHapus As String Text1 & "'" SQLHapus = "Delete From nilai where nis= '" & Conn.Execute SQLHapus KondisiAwal Else KondisiAwal Command3.SetFocus Else MsgBox "Data Tidak ditemukan" Text1.SetFocus Private Sub Combo1_KeyPress(Keyascii As Integer) If Keyascii = 27 Then Unload Me If Keyascii = 13 Then Call BukaDB 'cari nomor anggota yang diketik RSpelajaran.Open "Select * from pelajaran where kelas='" & Combo1 & "'", Conn 'jika ditemukan If Not RSpelajaran.EOF Then 'tampilkan namanya Label7.Caption = RSpelajaran!mtpel1 Label8.Caption = RSpelajaran!mtpel2 Label9.Caption = RSpelajaran!mtpel3 Label10.Caption = RSpelajaran!mtpel4
Label11.Caption = RSpelajaran!mtpel5 Label12.Caption = RSpelajaran!mtpel6 Label13.Caption = RSpelajaran!mtpel7 Label14.Caption = RSpelajaran!mtpel8 Label15.Caption = RSpelajaran!mtpel9 Label16.Caption = RSpelajaran!mtpel10 Else 'jika tidak ditemukan, munculkan pesan MsgBox "kelas tidak terdaftar" Combo1.SetFocus Exit Sub Private Sub Text4_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text5.SetFocus Private Sub Text5_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text6.SetFocus Private Sub Text6_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text7.SetFocus Private Sub Text7_KeyPress(Keyascii As Integer)
If Keyascii = 13 Then Text8.SetFocus Private Sub Text8_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text9.SetFocus Private Sub Text9_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text10.SetFocus Private Sub Text10_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text11.SetFocus Private Sub Text11_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text12.SetFocus Private Sub Text12_KeyPress(Keyascii As Integer) If Keyascii = 13 Then Text13.SetFocus Private Sub pelajaran() Call BukaDB With RSpelajaran RSpelajaran.Open "Select * from pelajaran where kelas='" & Combo1 & "'", Conn If Not RSpelajaran.EOF Then Label7.Caption = RSpelajaran!mtpel1 Label8.Caption = RSpelajaran!mtpel2
Label9.Caption = RSpelajaran!mtpel3 Label10.Caption = RSpelajaran!mtpel4 Label11.Caption = RSpelajaran!mtpel5 Label12.Caption = RSpelajaran!mtpel6 Label13.Caption = RSpelajaran!mtpel7 Label14.Caption = RSpelajaran!mtpel8 Label15.Caption = RSpelajaran!mtpel9 Label16.Caption = RSpelajaran!mtpel10 End With PROGRAM CETAK DATA SISWA Private Sub Combo1_Click() Call BukaDB RSDATA_SISWA.Open "Select * from DATA_SISWA where NIS='" & Combo1 & "'", Conn Private Sub Command1_Click() Unload Me Private Sub Command2_Click() If Combo1 = "" Then MsgBox "NIP kosong" Exit Sub Combo1.SetFocus
Pesan = MsgBox("Printer sudah siap..?", vbyesno, "Konfirmasi") If Pesan = vbyes Then Dim MGrs As String Printer.Font = "Courier New" Call BukaDB RSDATA_SISWA.Open "select * from DATA_SISWA Where NIS ='" & Combo1 & "'", Conn If Not RSDATA_SISWA.EOF Then Printer.Print Printer.FontBold = True Printer.Print Printer.FontBold = False Printer.CurrentX = 0 Printer.CurrentY = 0 Printer.Print Tab(20); "BIODATA SISWA" Printer.Print Printer.Print Tab(5); "Nis Printer.Print Tab(5); "NAMA : "; RSDATA_SISWA!NIS : "; RSDATA_SISWA!NAMA_SISWA Printer.Print Tab(5); "Tempat Lahir : "; RSDATA_SISWA!TEMPAT_LAHIR Printer.Print Tab(5); "Tanggal Lahir : "; RSDATA_SISWA!TANGGAL_LAHIR Printer.Print Tab(5); "Agama Printer.Print Tab(5); "Alamat : "; RSDATA_SISWA!AGAMA : "; RSDATA_SISWA!ALAMAT Printer.Print Tab(5); "Jenis Kelamin : "; RSDATA_SISWA!JENIS_KELAMIN Printer.Print
Printer.Print Tab(5); "Nama Ayah Printer.Print Tab(5); "Nama Ibu Printer.Print Tab(5); "Pekerjaan Printer.Print Tab(5); "Telepon : "; RSDATA_SISWA!NAMA_AYAH : "; RSDATA_SISWA!NAMA_IBU : "; RSDATA_SISWA!PEKERJAAN : "; RSDATA_SISWA!TELEPONOR Printer.Print Tab(5); "Alamat Orangtua : "; RSDATA_SISWA!ALAMATORTU Printer.Print Printer.Print Tab(5); "Nama Wali : "; RSDATA_SISWA!NAMA_WALI Printer.Print Tab(5); "Pekerjaan Wali : "; RSDATA_SISWA!PEKERJAANWAL Printer.Print Tab(5); "Telepon Wali : "; RSDATA_SISWA!TELEPONWAL Printer.Print Tab(5); "Hubungan Wali : "; RSDATA_SISWA!HUBUNGAN_WALI Printer.Print Tab(5); "Alamat Wali : "; RSDATA_SISWA!ALAMAT_WALI Printer.Print Printer.Print Tab(5); "Nama sekolah : "; RSDATA_SISWA!NAMA_SEKOLAH Printer.Print Tab(5); "No.STTB Printer.Print Tab(5); "Tahun Printer.Print Tab(5); "Tanggal Printer.Print Tab(5); "Dikelas : "; RSDATA_SISWA!NO_STTB : "; RSDATA_SISWA!TAHUN : "; RSDATA_SISWA!TANGGAL : "; RSDATA_SISWA!DIKELAS MGrs = String$(33, "-") Printer.Print Tab(5); MGrs Printer.Print Tab(5); MGrs Printer.Print Printer.EndDoc
Private Sub Combo1_KeyPress(Keyascii As Integer) If Keyascii = 27 Then Unload Me If Keyascii = 13 Then Call BukaDB 'cari nomor anggota yang diketik RSDATA_SISWA.Open "Select * from DATA_SISWA where NIS ='" & Combo1 & "'", Conn 'jika ditemukan If Not RSDATA_SISWA.EOF Then 'tampilkan namanya Label5.Caption = RSDATA_SISWA!NAMA_SISWA Label7.Caption = RSDATA_SISWA!TEMPAT_LAHIR Label10.Caption = RSDATA_SISWA!TANGGAL_LAHIR Label24.Caption = RSDATA_SISWA!AGAMA Label25.Caption = RSDATA_SISWA!JENIS_KELAMIN Label26.Caption = RSDATA_SISWA!ALAMAT Label27.Caption = RSDATA_SISWA!NAMA_AYAH Label28.Caption = RSDATA_SISWA!NAMA_IBU Label29.Caption = RSDATA_SISWA!PEKERJAAN Label30.Caption = RSDATA_SISWA!TELEPONOR Label31.Caption = RSDATA_SISWA!ALAMATORTU Label38.Caption = RSDATA_SISWA!NAMA_WALI Label39.Caption = RSDATA_SISWA!PEKERJAANWAL Label40.Caption = RSDATA_SISWA!TELEPONWAL Label41.Caption = RSDATA_SISWA!HUBUNGAN_WALI Label42.Caption = RSDATA_SISWA!ALAMAT_WALI Label43.Caption = RSDATA_SISWA!NAMA_SEKOLAH Label44.Caption = RSDATA_SISWA!NO_STTB Label45.Caption = RSDATA_SISWA!TAHUN
Label46.Caption = RSDATA_SISWA!TANGGAL Label47.Caption = RSDATA_SISWA!DIKELAS Else 'jika tidak ditemukan, munculkan pesan MsgBox "Nomor NIS tidak terdaftar" Combo1.SetFocus Exit Sub Private Sub Command3_Click() CrystalReport1.SelectionFormula = "" CrystalReport1.RetrieveDataFiles CrystalReport1.WindowState = crptmaximized CrystalReport1.Action = 1 Private Sub Form_Activate() Call BukaDB RSDATA_SISWA.Open "DATA_SISWA", Conn Combo1.Clear Do Until RSDATA_SISWA.EOF Combo1.AddItem RSDATA_SISWA!NIS RSDATA_SISWA.MoveNext
Loop PROGRAM CETAK DATA GURU Private Sub Combo1_Change() Call BukaDB RSguruku.Open "Select * from guruku where nip='" & Combo1 & "'", Conn Private Sub Command1_Click() Unload Me Private Sub Command2_Click() If Combo1 = "" Then MsgBox "NIP kosong" Exit Sub Combo1.SetFocus Pesan = MsgBox("Printer sudah siap..?", vbyesno, "Konfirmasi") If Pesan = vbyes Then Dim MGrs As String Printer.Font = "Courier New"
Call BukaDB RSguruku.Open "select * from guruku Where nip='" & Combo1 & "'", Conn If Not RSguruku.EOF Then Printer.Print Printer.FontBold = True Printer.Print Printer.FontBold = False Printer.CurrentX = 0 Printer.CurrentY = 0 Printer.Print Tab(20); "BIODATA GURU" Printer.Print Printer.Print Tab(5); "Nip Printer.Print Tab(5); "NAMA Printer.Print Tab(5); "Tempat Lahir Printer.Print Tab(5); "Tanggal Lahir Printer.Print Tab(5); "Jenip Kelamin Printer.Print Tab(5); "Agama Printer.Print Tab(5); "Alamat : "; RSguruku!nip : "; RSguruku!namaguru : "; RSguruku!tmptlhir : "; RSguruku!tgllhir : "; RSguruku!jenisklm : "; RSguruku!agamagru : "; RSguruku!alamatgru Printer.Print Printer.Print Tab(5); "Pendidikan Printer.Print Tab(5); "Golongan Printer.Print Tab(5); "Status Printer.Print Tab(5); "Mata Pelajaran Printer.Print Tab(5); "Telepon : "; RSguruku!pend : "; RSguruku!golongan : "; RSguruku!statusguru : "; RSguruku!matapel : "; RSguruku!telepon Printer.Print MGrs = String$(33, "-") Printer.Print Tab(5); MGrs
Printer.Print Tab(5); MGrs Printer.Print Printer.EndDoc Private Sub Combo1_KeyPress(Keyascii As Integer) If Keyascii = 27 Then Unload Me If Keyascii = 13 Then Call BukaDB 'cari nomor anggota yang diketik RSguruku.Open "Select * from guruku where nip='" & Combo1 & "'", Conn 'jika ditemukan If Not RSguruku.EOF Then 'tampilkan namanya Label14.Caption = RSguruku!namaguru Label15.Caption = RSguruku!tmptlhir Label16.Caption = RSguruku!tgllhir Label17.Caption = RSguruku!jenisklm Label13.Caption = RSguruku!agamagru Label18.Caption = RSguruku!alamatgru Label19.Caption = RSguruku!pend Label20.Caption = RSguruku!golongan Label21.Caption = RSguruku!statusguru Label22.Caption = RSguruku!matapel Label23.Caption = RSguruku!telepon
Else 'jika tidak ditemukan, munculkan pesan MsgBox "Nomor niptidak terdaftar" Combo1.SetFocus Exit Sub Private Sub Command3_Click() CrystalReport1.SelectionFormula = "" CrystalReport1.RetrieveDataFiles CrystalReport1.WindowState = crptmaximized CrystalReport1.Action = 1 Private Sub Form_Activate() Call BukaDB RSguruku.Open "guruku", Conn Combo1.Clear Do Until RSguruku.EOF Combo1.AddItem RSguruku!nip RSguruku.MoveNext Loop
CETAK DATA NILAI Private Sub Command2_Click() FRM_menu.Show Private Sub Command1_Click() If Text1 = "" Then MsgBox "Nis kosong" Exit Sub Text1.SetFocus Pesan = MsgBox("Printer sudah siap..?", vbyesno, "Konfirmasi") If Pesan = vbyes Then Dim MGrs As String Printer.Font = "Courier New" Call BukaDB RSNILAI.Open "select * from NILAI Where NIS='" & Text1 & "'", Conn If Not RSNILAI.EOF Then Printer.Print Printer.FontBold = True Printer.Print Printer.FontBold = False Printer.CurrentX = 0
Printer.CurrentY = 0 Printer.Print Tab(20); "DAFTAR Nilai SISWA SMA NEGERI 10 MEDAN" Printer.Print Printer.Print Tab(5); "Nis Printer.Print Tab(5); "Nama Printer.Print Tab(5); "Kelas : "; RSNILAI!NIS : "; RSNILAI!NAMA_SISWA : "; RSNILAI!KELAS Printer.Print Printer.Print Tab(5); "PENDIDIKAN AGAMA : "; RSNILAI!PENDAGAMA Printer.Print Tab(5); "PENDIDIKAN KEWARGANEGARAAN : "; RSNILAI!PKN Printer.Print Tab(5); "BAHASA INDONESIA Printer.Print Tab(5); "MATEMATIKA Printer.Print Tab(5); "ILMU PENGETAHUAN ALAM Printer.Print Tab(5); "ILMU PENGETAHUAN SOSIAL Printer.Print Tab(5); "KETERAMPILAN : "; RSNILAI!bind : "; RSNILAI!mtk : "; RSNILAI!ipa : "; RSNILAI!ips : "; RSNILAI!KTK Printer.Print Tab(5); "PENDIDIKAN JASMANI DAN KEAN : "; RSNILAI!PENJASKES Printer.Print Tab(5); "BAHASA INGGRIS : "; RSNILAI!BINGRIS Printer.Print Tab(5); "KOMPUTER : "; RSNILAI!KOMPUTER MGrs = String$(33, "-") Printer.Print Tab(5); MGrs Printer.Print Tab(5); MGrs Printer.Print Printer.EndDoc
Private Sub Form_Load() PROGRAM LAPORAN Private Sub Command1_Click() CrystalReport2.SelectionFormula = "" CrystalReport2.RetrieveDataFiles CrystalReport2.WindowState = crptmaximized CrystalReport2.Action = 1 Private Sub Command2_Click() CrystalReport1.SelectionFormula = "" CrystalReport1.RetrieveDataFiles CrystalReport1.WindowState = crptmaximized CrystalReport1.Action = 1 Private Sub Command3_Click() CrystalReport3.SelectionFormula = "" CrystalReport3.RetrieveDataFiles CrystalReport3.WindowState = crptmaximized CrystalReport3.Action = 1
Private Sub Form_Load()
TAMPILAN PROGRAM Tampilan awal Tampilan Login
Tampilan Menu
Tampilan Biodata Siswa Tampilan Biodata Guru
Tampilan Data Matapelajaran
Tampilan Data Nilai Siswa Tampilan Cetak Data Siswa
Tampilan Cetak Data Guru Tampilan Cetak Data Nilai Siswa
Tampilan Laporan Tampilan Laporan Data Siswa
Tampilan Laporan Data Guru Tampilan Laporan Nilai Siswa
KEMENTRIAN PENDIDIKAN NASIONAL UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jln. Bioteknologi No. 1 Kampus USU Padang Bulan, Medan 20155 Telp. (061) 8211050, 82144290 Fax. (061) 82144290 KARTU BIMBINGAN TUGAS AKHIR MAHASISWA Nama Mahasiswa : AIDA SOPIA Nomor Stambuk : 082406045 Judul Tugas Akhir Data Dosen Pembimbing 1 Tanggal Mulai Bimbingan Tanggal Selesai Bimbingan : Sistem Informasi Data Siswa dan Guru SMA Negeri 10 Medan : Drs. Henry Rani Sitepu, M.Si : : No TANGGAL ASSISTENSI BIMBINGAN PEMBAHASAN PADA ASSISTENSI MENGENAI PADA BAB PARAF DOSEN PEMBIMBING KETERANGAN Kartu ini harap dikembalikan kejurusan Matematika Bila Bimbingan Mahasiswa telah Selesai. Diketahui Disetujui Ketua Departemen Matematika Pembimbing Utama / Penanggung Jawab Prof. Drs. Tulus, M.Si., Ph.D Drs. Henry Rani Sitepu, M.Si NIP. 19620901 198803 1 002 NIP. 19530303 198303 1 002
SURAT KETERANGAN Hasil Uji Program Tugas Akhir Yang bertanda tangan dibawah ini, menerangkan bahwa Mahasiswa Tugas Akhir Program Diploma III Teknik Informatika/Statistika : Nama : AIDA SOPIA NIM : 082406045 Prog. Studi : D-III Teknik Informatika Judul TA : Sistem Informasi Data Siswa dan Data Guru SMA Negeri 10 Medan Menggunakan Visual Basic 6.0 Telah melaksanakan test program Tugas Akhir Mahasiswa tersebut di atas pada tanggal. 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 Program Studi D3 Teknik Informatika Drs. Henry Rani Sitepu, M.Si NIP. 195303031983031002