?? bkout.frm
字號:
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=圖書管理數據庫;Data Source=(local)"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=圖書管理數據庫;Data Source=(local)"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 圖書基本信息表 where 是否在庫='1'"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 240
Top = 8160
Visible = 0 'False
Width = 1215
_ExtentX = 2143
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=圖書管理數據庫;Data Source=(local)"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=圖書管理數據庫;Data Source=(local)"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "種類表"
Caption = "Adodc2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "bkout.frx":325F
DataSource = "Adodc2"
Height = 315
Left = 1080
TabIndex = 2
Top = 6000
Width = 1215
_ExtentX = 2143
_ExtentY = 582
_Version = 393216
Style = 2
ListField = "種類"
Text = ""
End
Begin MSDataListLib.DataCombo DataCombo2
Bindings = "bkout.frx":3274
Height = 315
Left = 3240
TabIndex = 3
Top = 6000
Width = 1575
_ExtentX = 2778
_ExtentY = 582
_Version = 393216
Style = 2
ListField = "圖書種類"
Text = ""
End
Begin MSAdodcLib.Adodc Adodc3
Height = 330
Left = 1440
Top = 8160
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=圖書管理數據庫;Data Source=(local)"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=圖書管理數據庫;Data Source=(local)"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "圖書種類表"
Caption = "Adodc3"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label1
BackColor = &H80000000&
Caption = "搜索"
Height = 255
Left = 600
TabIndex = 9
Top = 5400
Width = 375
End
Begin VB.Label Label2
BackColor = &H80000000&
Caption = "方式"
Height = 255
Left = 600
TabIndex = 8
Top = 6000
Width = 375
End
Begin VB.Label Label3
BackColor = &H80000000&
Caption = "圖書種類"
Height = 255
Left = 2400
TabIndex = 7
Top = 6000
Width = 735
End
End
Attribute VB_Name = "bkout"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim str As String
Dim rs As Recordset
Public n As Integer
Private Sub Command4_Click()
Adodc1.RecordSource = "multisearch '" & Trim(Text1.Text) & "'," & "'" & Trim(DataCombo1.Text) & "'," & "'" & Trim(DataCombo2.Text) & "'"
Adodc1.Refresh
End Sub
Private Sub Form_Load()
n = 0
End Sub
Private Sub Command1_Click()
If MsgBox("是否刪除此書?", vbYesNo, "信息提示") = vbYes Then
'Adodc1.Recordset.Delete
str = "delete 圖書基本信息表 where 圖書編號='" & Trim(DataGrid1.Text) & "'"
'MsgBox DataGrid1.Text
exesql (str)
str = "select * from 圖書基本信息表 where 圖書編號='" & Trim(DataGrid1.Text) & "'"
Set rs = exesql(str)
Adodc1.Refresh
If rs.RecordCount <> 0 Then
MsgBox "此書不在書庫,不能刪除", vbOKOnly + vbExclamation, "信息提示"
End If
End If
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub DataGrid1_HeadClick(ByVal ColIndex As Integer)
If n = 0 Then
With Adodc1.Recordset
.Sort = .Fields(ColIndex).Name & " DESC"
End With
DataGrid1.Refresh
n = 1
Else
With Adodc1.Recordset
.Sort = .Fields(ColIndex).Name & " ASC"
End With
DataGrid1.Refresh
n = 0
End If
End Sub
Private Sub Form_Resize()
DataGrid1.Width = bkout.Width
DataGrid1.Height = bkout.Height - 1800
Text1.Top = bkout.Height - 1500
Label1.Top = bkout.Height - 1500
Label2.Top = bkout.Height - 1000
DataCombo1.Top = bkout.Height - 1000
Label3.Top = bkout.Height - 1000
DataCombo2.Top = bkout.Height - 1000
Command4.Top = bkout.Height - 1000
Command1.Top = bkout.Height - 1000
Command3.Top = bkout.Height - 1000
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -