[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Data
/
Penerimaan Mahasiswa Baru
/
[
Home
]
File: DATAS.FRM
VERSION 5.00 Object = "{00025600-0000-0000-C000-000000000046}#5.2#0"; "CRYSTL32.OCX" Begin VB.Form datas BorderStyle = 1 'Fixed Single Caption = "Laporan Siswa Baru" ClientHeight = 2145 ClientLeft = 45 ClientTop = 330 ClientWidth = 4335 LinkTopic = "Form1" MaxButton = 0 'False MDIChild = -1 'True MinButton = 0 'False ScaleHeight = 2145 ScaleWidth = 4335 Begin VB.Frame Frame1 Height = 1515 Left = 180 TabIndex = 1 Top = 300 Width = 3855 Begin VB.CommandButton cmdproses Caption = "&Proses" Height = 315 Left = 660 TabIndex = 4 Top = 1080 Width = 1035 End Begin VB.CommandButton cmdBatal Caption = "&Batal" Height = 315 Left = 2100 TabIndex = 3 Top = 1080 Width = 1035 End Begin VB.TextBox Tahun Height = 345 Left = 1860 TabIndex = 2 Top = 360 Width = 1095 End Begin VB.Label Label1 Caption = "Tahun" BeginProperty Font Name = "MS Sans Serif" Size = 9.75 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 660 TabIndex = 5 Top = 420 Width = 1215 End End Begin VB.Frame Frame2 Caption = "Frame2" Height = 15 Left = 1080 TabIndex = 0 Top = 1440 Width = 75 End Begin Crystal.CrystalReport lap Left = 5640 Top = 1020 _ExtentX = 741 _ExtentY = 741 _Version = 348160 PrintFileLinesPerPage= 60 End End Attribute VB_Name = "datas" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Public dbsiswa As Database Public rssiswa As Recordset Public dblaporan As Database Public rslaporan As Recordset Private Sub HapusTabel() If rslaporan.RecordCount <> 0 Then Do While Not rslaporan.EOF rslaporan.Delete rslaporan.MoveNext Loop End If End Sub Private Sub cmdBatal_Click() Unload Me End Sub Private Sub cmdProses_Click() Set dblaporan = OpenDatabase(App.Path & "\laporan.mdb") Set rslaporan = dblaporan.OpenRecordset("lap3") HapusTabel rssiswa.MoveFirst Do While Not rssiswa.EOF rslaporan.AddNew rslaporan(0) = Tahun rslaporan(1) = rssiswa(0) rslaporan(2) = rssiswa(1) rslaporan(3) = rssiswa(4) rslaporan(4) = rssiswa(5) rslaporan(5) = rssiswa(3) rslaporan(6) = rssiswa(2) rslaporan(7) = rssiswa(6) rslaporan.Update rssiswa.MoveNext Loop dblaporan.Close lap.ReportFileName = App.Path & "\lap4.rpt" lap.DataFiles(0) = App.Path & "\laporan.mdb" lap.WindowState = crptMaximized lap.WindowTitle = "Laporan Daftar siswa Siswa" lap.Action = 28 End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Form_Load() Set dbsiswa = OpenDatabase(App.Path & "\siswa baru.mdb") Set rssiswa = dbsiswa.OpenRecordset("siswa") 'rssiswa.Index = "cari1" End Sub