?? frmgussetreport.frm
字號:
VERSION 5.00
Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
Begin VB.Form frmGussetReport
AutoRedraw = -1 'True
BackColor = &H80000004&
Caption = "All Student Marks Sheet.."
ClientHeight = 3330
ClientLeft = 60
ClientTop = 345
ClientWidth = 6330
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "frmGussetReport.frx":0000
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 3330
ScaleWidth = 6330
WindowState = 2 'Maximized
Begin VB.PictureBox Picture3
Height = 1575
Left = -120
Picture = "frmGussetReport.frx":000C
ScaleHeight = 1515
ScaleWidth = 12060
TabIndex = 16
Top = -120
Width = 12120
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Students Marks Sheet Report"
BeginProperty Font
Name = "Verdana"
Size = 24
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000006&
Height = 570
Left = 1320
TabIndex = 17
Top = 360
Width = 7875
End
End
Begin VB.Frame Frame2
BackColor = &H80000004&
Caption = "By Session:-"
ForeColor = &H00000000&
Height = 1215
Left = 2640
TabIndex = 12
Top = 2160
Width = 6075
Begin VB.OptionButton Option3
BackColor = &H80000004&
Caption = "&All Class's and All Term's"
ForeColor = &H00000000&
Height = 285
Left = 1440
TabIndex = 15
Top = 840
Value = -1 'True
Width = 2775
End
Begin VB.OptionButton Option2
BackColor = &H80000004&
Caption = "&Specific Class and All Terms"
ForeColor = &H00000000&
Height = 255
Left = 1380
TabIndex = 14
Top = 540
Width = 2745
End
Begin VB.OptionButton Option1
BackColor = &H80000004&
Caption = "Specific &Class and Specific Term"
ForeColor = &H00000000&
Height = 255
Left = 1380
TabIndex = 13
Top = 240
Width = 2985
End
End
Begin VB.Frame Frame3
BackColor = &H80000004&
ForeColor = &H00FFFFFF&
Height = 1305
Left = 2640
TabIndex = 3
Top = 3840
Width = 6075
Begin VB.ComboBox cmbCourse
Height = 315
Left = 4110
Style = 2 'Dropdown List
TabIndex = 7
Top = 270
Width = 1575
End
Begin VB.ComboBox cmbSemester
Height = 315
Left = 4110
Style = 2 'Dropdown List
TabIndex = 5
Top = 780
Width = 1575
End
Begin VB.ComboBox cmbExams
Height = 315
Left = 1080
Style = 2 'Dropdown List
TabIndex = 4
Top = 780
Width = 1575
End
Begin MSMask.MaskEdBox T
Height = 315
Left = 1080
TabIndex = 6
Top = 270
Width = 1575
_ExtentX = 2778
_ExtentY = 556
_Version = 393216
MaxLength = 8
Mask = "AAA-9999"
PromptChar = "_"
End
Begin VB.Label Label1
BackColor = &H80000004&
Caption = "&Session:"
ForeColor = &H00000000&
Height = 315
Index = 0
Left = 390
TabIndex = 11
Top = 300
Width = 855
End
Begin VB.Label Label1
BackColor = &H80000004&
Caption = "&Exam:"
ForeColor = &H00000000&
Height = 315
Index = 1
Left = 540
TabIndex = 10
Top = 810
Width = 855
End
Begin VB.Label Label1
BackColor = &H80000004&
Caption = "Class:"
ForeColor = &H00000000&
Height = 315
Index = 2
Left = 3420
TabIndex = 9
Top = 330
Width = 855
End
Begin VB.Label Label1
BackColor = &H80000004&
Caption = "&Term:"
ForeColor = &H00000000&
Height = 315
Index = 3
Left = 3420
TabIndex = 8
Top = 810
Width = 435
End
End
Begin VB.CommandButton cmdHelp
Caption = "&Help"
Height = 315
Left = 6120
TabIndex = 2
Top = 5880
Width = 1095
End
Begin VB.CommandButton cmdCancel
Caption = "Cancel"
Height = 315
Left = 4680
TabIndex = 1
Top = 5880
Width = 1095
End
Begin VB.CommandButton cmdOK
Caption = "&Preview.."
Height = 315
Left = 3360
TabIndex = 0
Top = 5880
Width = 1095
End
End
Attribute VB_Name = "frmGussetReport"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim IND As Integer
Dim j As String
Dim Ch As Integer
Dim b1 As Integer, C1 As Integer, d1 As Integer
Dim a2 As String
Private Sub cmbCourse_Click()
On Error Resume Next
IND = cmbCourse.ItemData(cmbCourse.ListIndex)
Call ShowSemester(cmbSemester, cmbCourse.ItemData(cmbCourse.ListIndex))
If cmbCourse.Text <> "" Then
Option2.Value = True
End If
End Sub
Private Sub cmbExams_Click()
If cmbCourse.Text = "" Then
Option3.Value = True
Ch = 3
End If
End Sub
Private Sub cmbSemester_Click()
If cmbCourse.Text <> "" And cmbExams.Text <> "" Then
Option1.Value = True
End If
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
On Error Resume Next
If cmbExams.Text = "" Then
MsgBox "Session and Exams are required entry for all the choices", vbInformation, App.Comments
Exit Sub
End If
a2 = T.Text
b1 = cmbExams.ItemData(cmbExams.ListIndex)
C1 = cmbCourse.ItemData(cmbCourse.ListIndex)
d1 = cmbSemester.ListIndex + 1
'Call GussetReport(Ch, b1, d1, C1, a2)
If DE.rsrptGusset_Grouping.State = 1 Then
DE.rsrptGusset_Grouping.Close
End If
Call DE.rptGusset_Grouping(Ch, b1, d1, C1, a2)
If DE.rsrptGusset_Grouping.RecordCount = 0 Then
MsgBox "there is no record to print canceling report...", vbInformation, App.Comments
Exit Sub
End If
Call rptGusset.Show
End Sub
Private Sub Form_Load()
Dither Me
Call ShowCourse(cmbCourse)
Call ShowExams(cmbExams)
'T.Text = frmOptions.MT1.Text
End Sub
Private Sub T1_KeyPress(KeyAscii As Integer)
' If KeyAscii = 13 Then
' CheckMonth
' ' CheckYear
' End If
End Sub
Private Sub CheckYear()
j = Len(Right(t1.Text, 4))
Me.Caption = j
End Sub
Private Sub Option1_Click()
Ch = 1
End Sub
Private Sub Option2_Click()
cmbSemester.ListIndex = -1
Ch = 2
End Sub
Private Sub Option3_Click()
Ch = 3
cmbSemester.ListIndex = -1
cmbCourse.ListIndex = -1
End Sub
Private Sub T_LostFocus()
Call MainModule.CheckYear(T)
Call CheckMonth(T)
'DE.rptGusset_Grouping
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -