?? sqlform.frm
字號:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form6
BackColor = &H00C0C0FF&
BorderStyle = 1 'Fixed Single
Caption = "查詢.打印窗口"
ClientHeight = 5220
ClientLeft = 45
ClientTop = 615
ClientWidth = 8835
LinkTopic = "Form6"
MaxButton = 0 'False
MDIChild = -1 'True
NegotiateMenus = 0 'False
ScaleHeight = 5220
ScaleWidth = 8835
ShowInTaskbar = 0 'False
Begin VB.CommandButton Command2
Caption = "關閉"
Height = 375
Left = 7560
TabIndex = 16
Top = 4680
Width = 975
End
Begin VB.Frame Frame2
Appearance = 0 'Flat
BackColor = &H00C0C0FF&
Caption = "成績查詢(單學期或總分表)"
ForeColor = &H80000008&
Height = 4815
Left = 120
TabIndex = 3
Top = 120
Width = 2535
Begin VB.ComboBox Combo4
BackColor = &H00FF80FF&
BeginProperty Font
Name = "System"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 960
TabIndex = 18
Text = "Combo4"
ToolTipText = "只有對科目,總分,名次查詢時,符號選擇才起作用。"
Top = 720
Width = 1455
End
Begin VB.ListBox List1
BackColor = &H00C0FFC0&
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2370
Left = 960
MultiSelect = 1 'Simple
TabIndex = 14
Top = 2280
Width = 1455
End
Begin VB.ComboBox Combo3
BackColor = &H00FF80FF&
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 960
TabIndex = 8
Text = "Combo3"
Top = 1800
Width = 1455
End
Begin VB.ComboBox Combo2
BackColor = &H00FF80FF&
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 960
TabIndex = 7
Text = "Combo2"
Top = 1440
Width = 1455
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "System"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 960
TabIndex = 6
Text = "60"
ToolTipText = "按姓名,學號查詢時,可輸入通配符“?”,“*”。"
Top = 1080
Width = 1455
End
Begin VB.ComboBox Combo1
BackColor = &H00FF80FF&
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 960
TabIndex = 5
Text = "Combo1"
Top = 360
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "執行查詢"
Height = 615
Left = 120
TabIndex = 4
Top = 3960
Width = 615
End
Begin VB.Label Label5
BackColor = &H00C0C0FF&
Caption = "符號選擇"
Height = 255
Left = 120
TabIndex = 17
Top = 720
Width = 735
End
Begin VB.Label Label14
BackColor = &H00C0C0FF&
Caption = "選擇要顯示和打印的內容(姓名自動選取)"
Height = 1095
Left = 120
TabIndex = 15
Top = 2520
Width = 735
End
Begin VB.Label Label4
BackColor = &H00C0C0FF&
Caption = "排序方式"
Height = 255
Left = 120
TabIndex = 12
Top = 1800
Width = 855
End
Begin VB.Label Label3
BackColor = &H00C0C0FF&
Caption = "排序項目"
Height = 255
Left = 120
TabIndex = 11
Top = 1440
Width = 735
End
Begin VB.Label Label6
BackColor = &H00C0C0FF&
Caption = "查詢的值"
Height = 255
Left = 120
TabIndex = 10
Top = 1080
Width = 735
End
Begin VB.Label Label1
BackColor = &H00C0C0FF&
Caption = "查詢方式"
Height = 255
Left = 120
TabIndex = 9
Top = 360
Width = 735
End
End
Begin MSFlexGridLib.MSFlexGrid dbGrid1
Bindings = "sqlform.frx":0000
Height = 4335
Left = 2880
TabIndex = 2
Top = 240
Width = 5775
_ExtentX = 10186
_ExtentY = 7646
_Version = 327680
Rows = 200
Cols = 1
ForeColor = 16711680
BackColorFixed = 255
ForeColorFixed = 16777215
BackColorSel = 16711935
ForeColorSel = 16777215
WordWrap = -1 'True
FillStyle = 1
GridLines = 2
AllowUserResizing= 3
Appearance = 0
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 2160
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 120
Visible = 0 'False
Width = 1140
End
Begin VB.Label Label13
BackColor = &H00C0C0FF&
Caption = "Label13"
Height = 255
Left = 5040
TabIndex = 13
Top = 4800
Width = 1815
End
Begin VB.Label Label7
BackColor = &H00C0C0FF&
Caption = "0"
Height = 255
Left = 3960
TabIndex = 1
Top = 4800
Width = 615
End
Begin VB.Label Label2
BackColor = &H00C0C0FF&
Caption = "記錄總數:"
Height = 255
Left = 3000
TabIndex = 0
Top = 4800
Width = 855
End
Begin VB.Menu qq
Caption = "查詢[&Q]"
Begin VB.Menu qqoper
Caption = "執行查詢[&O]"
Shortcut = {F2}
End
Begin VB.Menu qsp0
Caption = "-"
End
Begin VB.Menu qexit
Caption = "關閉[&E]"
Shortcut = {F4}
End
End
Begin VB.Menu qprint
Caption = "打印[&P]"
Begin VB.Menu qptr
Caption = "打印機[&P]"
Index = 0
Shortcut = ^P
End
Begin VB.Menu qptr
Caption = "Excel8.0[&E]"
Index = 1
Shortcut = ^E
End
End
Begin VB.Menu qhelp
Caption = "幫助[&H]"
Begin VB.Menu qusage
Caption = "使用說明[&U]"
Shortcut = ^U
End
Begin VB.Menu calc
Caption = "計算器[&C]"
End
Begin VB.Menu qsp1
Caption = "-"
End
Begin VB.Menu qabout
Caption = "關于版本[&A]"
Shortcut = ^A
End
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim wsql As String
Dim wpc As Integer
Dim fldd(18) As String
Dim ddd As Integer '''''''''''
Private Sub calc_Click()
Dim i As Double
i = Shell("c:\windows\calc.exe", 1)
End Sub
Private Sub Combo1_Click()
Select Case Combo1.ListIndex
Case 0
Combo4.Enabled = False
Text1.Enabled = False
Case 1, 2
Combo4.Enabled = False
Text1.Enabled = True
Case Else
Combo4.Enabled = True
Text1.Enabled = True
End Select
End Sub
Private Sub Command1_Click()
qqoper_Click
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -