📄 form5.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form5
BackColor = &H00C0FFC0&
Caption = "查询"
ClientHeight = 3960
ClientLeft = 60
ClientTop = 345
ClientWidth = 7455
Icon = "Form5.frx":0000
LinkTopic = "Form5"
MaxButton = 0 'False
ScaleHeight = 3960
ScaleWidth = 7455
StartUpPosition = 1 '所有者中心
Begin VB.ComboBox Combo1
BackColor = &H00C0FFC0&
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 600
TabIndex = 5
Text = "按姓名查询"
Top = 2640
Width = 1935
End
Begin VB.CommandButton Command1
BackColor = &H00C0FFC0&
Caption = "查询 &S"
Height = 495
Left = 1800
Style = 1 'Graphical
TabIndex = 4
Top = 3360
Width = 1215
End
Begin VB.CommandButton Command2
BackColor = &H00C0FFC0&
Caption = "退出 &Q"
Height = 495
Left = 4320
Style = 1 'Graphical
TabIndex = 3
Top = 3360
Width = 1215
End
Begin VB.Frame Frame1
BackColor = &H00C0FFC0&
Caption = "查询"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1215
Left = 0
TabIndex = 1
Top = 2040
Width = 7455
Begin VB.TextBox Text1
BackColor = &H00C0FFC0&
Height = 375
Left = 2880
TabIndex = 2
Top = 600
Width = 3855
End
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Form5.frx":0442
Height = 2055
Left = 0
TabIndex = 0
Top = 0
Width = 7935
_ExtentX = 13996
_ExtentY = 3625
_Version = 393216
AllowUpdate = -1 'True
BackColor = 12648384
HeadLines = 1
RowHeight = 22
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "查询论文信息"
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 735
Left = 4440
Top = 480
Width = 2415
_ExtentX = 4260
_ExtentY = 1296
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
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
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Select Case Combo1.Text
Case "按姓名查询"
Adodc1.RecordSource = "select 论文编号,论文作者,论文名称,发表刊物,发表时间 from 论文基本信息表 where 论文作者='" & Text1.Text & "'"
Adodc1.Refresh
Exit Sub
Case "按编号查询"
Adodc1.RecordSource = "select 论文编号,论文作者,论文名称,发表刊物,发表时间 from 论文基本信息表 where 论文编号='" & Text1.Text & "'"
Adodc1.Refresh
Exit Sub
Case "按学科查询"
Adodc1.RecordSource = "select 论文编号,论文作者,论文名称,发表刊物,发表时间 from 论文基本信息表 where 论文名称 like '" & Text1.Text & " '"
Adodc1.Refresh
Exit Sub
End Select
End Sub
Private Sub Command2_Click()
Unload Form5
Load Form3
Form3.Show
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = "Provider=Microsoft.jet.OLEDB.3.51;Persist Security Info=False; data source= " & App.Path & "\科技系统档案库.mdb"
Adodc1.ConnectionTimeout = 30
Combo1.AddItem "按姓名查询"
Combo1.AddItem "按编号查询"
Combo1.AddItem "按学科查询"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -