[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Data
/
Penerimaan Mahasiswa Baru
/
[
Home
]
File: lditerima.frm
VERSION 5.00 Object = "{00025600-0000-0000-C000-000000000046}#5.2#0"; "CRYSTL32.OCX" Begin VB.Form lditerima BorderStyle = 1 'Fixed Single Caption = "Laporan Calon Siswa Diterima" ClientHeight = 2175 ClientLeft = 45 ClientTop = 330 ClientWidth = 4680 LinkTopic = "Form1" MaxButton = 0 'False MDIChild = -1 'True MinButton = 0 'False ScaleHeight = 2175 ScaleWidth = 4680 Begin VB.Frame Frame1 Height = 1695 Left = 480 TabIndex = 1 Top = 180 Width = 3855 Begin VB.CommandButton cmdproses Caption = "&Proses" Height = 315 Left = 720 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 = 1320 TabIndex = 2 Top = 360 Width = 975 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 = 480 TabIndex = 5 Top = 420 Width = 1215 End End Begin VB.Frame Frame2 Caption = "Frame2" Height = 15 Left = 1260 TabIndex = 0 Top = 1260 Width = 75 End Begin Crystal.CrystalReport lap Left = 5820 Top = 840 _ExtentX = 741 _ExtentY = 741 _Version = 348160 PrintFileLinesPerPage= 60 End End Attribute VB_Name = "lditerima" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Public dbcalon As Database Public rscalon As Recordset Public dblaporan As Database Public rslaporan As Recordset Public dbrayon As Database Public rsrayon 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("lap2") HapusTabel rscalon.MoveFirst Do While Not rscalon.EOF If (rscalon(8) = "C" And rscalon(7) >= 33) Or (rscalon(8) <> "C" And rscalon(7) >= 43) Then rslaporan.AddNew rslaporan(0) = Tahun rslaporan(1) = rscalon(0) rslaporan(2) = rscalon(1) rslaporan(3) = rscalon(3) rslaporan(4) = rscalon(7) rslaporan.Update End If rscalon.MoveNext Loop dblaporan.Close lap.ReportFileName = App.Path & "\lap2.rpt" lap.DataFiles(0) = App.Path & "\laporan.mdb" lap.WindowState = crptMaximized lap.WindowTitle = "Laporan Daftar Calon Siswa Yang Diterima" lap.Action = 28 End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Form_Load() Set dbcalon = OpenDatabase(App.Path & "\siswa baru.mdb") Set rscalon = dbcalon.OpenRecordset("calon") Set dbrayon = OpenDatabase(App.Path & "\siswa baru.mdb") Set rsrayon = dbcalon.OpenRecordset("rayon") rscalon.Index = "cari1" End Sub