?? main_jygl_hscx.frm
字號(hào):
EndProperty
BeginProperty Column02
ColumnWidth = 615.118
EndProperty
BeginProperty Column03
ColumnWidth = 1140.095
EndProperty
BeginProperty Column04
ColumnWidth = 989.858
EndProperty
BeginProperty Column05
ColumnWidth = 2085.166
EndProperty
BeginProperty Column06
ColumnWidth = 615.118
EndProperty
BeginProperty Column07
ColumnWidth = 1019.906
EndProperty
BeginProperty Column08
ColumnWidth = 794.835
EndProperty
BeginProperty Column09
ColumnWidth = 450.142
EndProperty
BeginProperty Column10
ColumnWidth = 794.835
EndProperty
BeginProperty Column11
ColumnWidth = 524.976
EndProperty
BeginProperty Column12
ColumnWidth = 1349.858
EndProperty
BeginProperty Column13
ColumnWidth = 599.811
EndProperty
BeginProperty Column14
ColumnWidth = 480.189
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc2
Height = 420
Left = 105
Top = 2010
Visible = 0 'False
Width = 1500
_ExtentX = 2646
_ExtentY = 741
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=NBooks"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "NBooks"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from hsb"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc1
Height = 420
Left = 360
Top = 1605
Visible = 0 'False
Width = 1500
_ExtentX = 2646
_ExtentY = 741
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=NBooks"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "NBooks"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from hsb"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame1
Height = 600
Left = 45
TabIndex = 0
Top = 0
Width = 5805
Begin VB.TextBox Text1
Height = 300
Left = 1770
TabIndex = 2
Top = 195
Width = 3900
End
Begin VB.ComboBox Combo1
Height = 300
Left = 120
TabIndex = 1
Top = 195
Width = 1650
End
End
Begin VB.Frame Frame2
Height = 600
Left = 5835
TabIndex = 3
Top = 0
Width = 3255
Begin VB.CommandButton CmdEnd
Caption = "退出"
Height = 375
Left = 1755
TabIndex = 5
Top = 165
Width = 1335
End
Begin VB.CommandButton CmdFind
Caption = "查詢"
Height = 375
Left = 180
TabIndex = 4
Top = 165
Width = 1350
End
End
Begin VB.Label je
BackStyle = 0 'Transparent
ForeColor = &H000000FF&
Height = 180
Left = 4920
TabIndex = 9
Top = 3900
Width = 1755
End
Begin VB.Label sl
BackStyle = 0 'Transparent
ForeColor = &H00FF0000&
Height = 180
Left = 2655
TabIndex = 8
Top = 3900
Width = 1080
End
Begin VB.Label pz
BackStyle = 0 'Transparent
ForeColor = &H0000FF00&
Height = 180
Left = 945
TabIndex = 7
Top = 3900
Width = 780
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "還回品種: 還回?cái)?shù)量: 還回金額:"
Height = 195
Left = 60
TabIndex = 6
Top = 3900
Width = 7800
End
End
Attribute VB_Name = "main_jygl_hscx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
'添加字段列表
Combo1.AddItem ("還書人")
Combo1.AddItem ("書證號(hào)")
Combo1.AddItem ("條形碼")
Combo1.AddItem ("書名")
Combo1.AddItem ("出版社")
Combo1.AddItem ("作者")
Combo1.AddItem ("票號(hào)")
Combo1.AddItem ("圖書類別")
Combo1.ListIndex = 0
CmdFind_Click
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
Private Sub CmdFind_Click()
Adodc1.RecordSource = "select * from hsb where hsb." & Combo1.text & " " & " like'" + Text1.text + "'+'%'order by val(right(書證號(hào),5))"
Adodc1.Refresh
Adodc2.RecordSource = "select count(*)as 品種,sum(還回?cái)?shù)量)as 合計(jì)數(shù)量,sum(金額)as 合計(jì)金額 from hsb where hsb." & Combo1.text & " " & "like '" + Text1.text + "'+'%'"
Adodc2.Refresh
If Adodc2.Recordset.Fields(0) <> "" Then pz.Caption = Adodc2.Recordset.Fields(0) Else pz.Caption = "0"
If Adodc2.Recordset.Fields(1) <> "" Then sl.Caption = Adodc2.Recordset.Fields(1) Else sl.Caption = "0"
If Adodc2.Recordset.Fields(2) <> "" Then je.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else je.Caption = "0.00"
End Sub
Private Sub CmdEnd_Click()
Unload Me
frm_main.Enabled = True
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -