📄 form9.frm
字号:
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column11
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 Column12
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 Column13
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 Column14
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 Column15
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
ColumnWidth = 2085.166
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 2085.166
EndProperty
BeginProperty Column03
ColumnWidth = 2085.166
EndProperty
BeginProperty Column04
ColumnWidth = 2085.166
EndProperty
BeginProperty Column05
ColumnWidth = 2085.166
EndProperty
BeginProperty Column06
ColumnWidth = 2085.166
EndProperty
BeginProperty Column07
ColumnWidth = 2085.166
EndProperty
BeginProperty Column08
ColumnWidth = 2085.166
EndProperty
BeginProperty Column09
ColumnWidth = 2085.166
EndProperty
BeginProperty Column10
ColumnWidth = 2085.166
EndProperty
BeginProperty Column11
ColumnWidth = 2085.166
EndProperty
BeginProperty Column12
ColumnWidth = 2085.166
EndProperty
BeginProperty Column13
ColumnWidth = 2085.166
EndProperty
BeginProperty Column14
ColumnWidth = 2085.166
EndProperty
BeginProperty Column15
ColumnWidth = 2085.166
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 360
Top = 6120
Width = 3375
_ExtentX = 5953
_ExtentY = 661
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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "SELECT * FROM rs;"
Caption = "浏览"
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.Label Label4
Caption = "输入组合查询字符"
Height = 255
Left = 240
TabIndex = 10
Top = 1800
Width = 1935
End
Begin VB.Label Label3
Caption = "输入组合查询字段名"
Height = 255
Left = 240
TabIndex = 8
Top = 1320
Width = 1935
End
Begin VB.Label Label2
Caption = "输入索检字符"
Height = 255
Left = 840
TabIndex = 3
Top = 120
Width = 1935
End
Begin VB.Label Label1
Caption = "查询"
Height = 255
Left = 120
TabIndex = 0
Top = 120
Width = 1575
End
End
Attribute VB_Name = "Form8"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.RecordSource = "SELECT * FROM rs"
Adodc1.Refresh
End Sub
Private Sub Command2_Click()
ss = Text1.Text
ss = "%%" & ss & "%%"
Adodc1.RecordSource = "SELECT * FROM rs where 姓名 like '" + ss + "'"
Adodc1.Refresh
End Sub
Private Sub Command3_Click()
ss = Text1.Text
ss = "%%" & ss & "%%"
Adodc1.RecordSource = "SELECT * FROM rs where 部门 like '" + ss + "'"
Adodc1.Refresh
End Sub
Private Sub Command4_Click()
ss = Text1.Text
ss = "%%" & ss & "%%"
Adodc1.RecordSource = "SELECT * FROM rs where 学历 like '" + ss + "'"
Adodc1.Refresh
End Sub
Private Sub Command5_Click()
ss = Text1.Text
ss = "%%" & ss & "%%"
Adodc1.RecordSource = "SELECT * FROM rs where 性别 like '" + ss + "'"
Adodc1.Refresh
End Sub
Private Sub Command6_Click()
ss2 = text2.Text
ss3 = text3.Text
ss4 = Text4.Text
ss5 = Text5.Text
ss4 = "%%" & ss4 & "%%"
ss5 = "%%" & ss5 & "%%"
Adodc1.RecordSource = "SELECT * FROM rs where " + ss2 + " like '" + ss4 + "' and " + ss3 + " like '" + ss5 + "'"
Adodc1.Refresh
End Sub
Private Sub Command7_Click()
Dim mycn As New ADODB.Connection '定义连接
Dim myrs As New ADODB.Recordset '定义记录集
Set myrs = New ADODB.Recordset
mycn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;"
myrs.Open "delete from rs_dy", mycn '删除原查询表的记录
myrs.Open "INSERT INTO rs_dy " & Adodc1.RecordSource, mycn, adOpenKeyset, adLockOptimistic
'将查询过的记录放在query表
DataReport3.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -