📄 findform.frm
字号:
VERSION 5.00
Object = "{5F040430-E830-436B-9992-0A33849ACABA}#2.1#0"; "VSNETMENU.OCX"
Begin VB.Form findform
BorderStyle = 1 'Fixed Single
Caption = "图书查询"
ClientHeight = 5250
ClientLeft = 45
ClientTop = 330
ClientWidth = 7035
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 5250
ScaleWidth = 7035
Begin VBVsNetMenu.VsNetMenu VsNetMenu1
Left = 5280
Top = 2640
_ExtentX = 926
_ExtentY = 926
BmpCount = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.CommandButton Command2
Caption = "清 空"
Height = 375
Left = 5280
TabIndex = 6
Top = 1680
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "开始查找"
Height = 375
Left = 5280
TabIndex = 5
Top = 960
Width = 1095
End
Begin VB.Frame Frame1
Caption = "查找条件"
Height = 1695
Left = 720
TabIndex = 0
Top = 720
Width = 3615
Begin VB.TextBox Text2
Appearance = 0 'Flat
Height = 375
Left = 1440
TabIndex = 4
Top = 960
Width = 1695
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 375
Left = 1440
TabIndex = 3
Top = 480
Width = 1695
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "书 名"
Height = 180
Left = 240
TabIndex = 2
Top = 1080
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "图书编号"
Height = 180
Left = 240
TabIndex = 1
Top = 600
Width = 720
End
End
End
Attribute VB_Name = "findform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim sql As String
Dim booktitle As String
Dim bookno As String
bookno = Replace(Trim(Text1.Text), "'", "''")
booktitle = Replace(Trim(Text2.Text), "'", "''")
sql = "select * from book"
opendb sql, ""
If rs.EOF Then
Me.Print "dklsaf"
Else
Me.Print "OK"
End If
'If Not book = "" Or Not booktitle = "" Then
' sql = "select * from book where 图书编号='" & bookno & "'" & "or 书名='" & booktitle & "'"
' opendb sql, ""
' If rs.EOF Then
' MsgBox "对不起,您所查找的书没有!", , "提示"
' Else
'
' End If
' closedb
'Else
' MsgBox "对不起,您所查找的书没有!", , "提示"
' Text1.SetFocus
'End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -