📄 frm_yzinfocx.frm
字号:
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_fwinfo"
Caption = "Adodc3"
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
Begin VB.Frame Frame2
Caption = "大楼列表:"
Height = 1800
Left = 120
TabIndex = 3
Top = 1230
Width = 2730
Begin MSDataListLib.DataList DataList1
Bindings = "frm_yzinfocx.frx":0032
Height = 1320
Left = 120
TabIndex = 16
Top = 315
Width = 2475
_ExtentX = 4366
_ExtentY = 2328
_Version = 393216
ListField = "大楼编号"
BoundColumn = "大楼名称"
End
End
Begin VB.Frame Frame1
Height = 1035
Left = 120
TabIndex = 0
Top = 75
Width = 2760
Begin VB.ComboBox Combo1
Height = 300
ItemData = "frm_yzinfocx.frx":0047
Left = 1050
List = "frm_yzinfocx.frx":0049
TabIndex = 1
Top = 375
Width = 1470
End
Begin VB.Label Label1
Caption = "小区名称:"
Height = 195
Left = 120
TabIndex = 2
Top = 420
Width = 945
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 360
Left = 840
Top = 645
Width = 1920
_ExtentX = 3387
_ExtentY = 635
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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_rkinfo"
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 Adodc4
Height = 465
Left = 195
Top = 1350
Width = 2235
_ExtentX = 3942
_ExtentY = 820
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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_dlinfo"
Caption = "Adodc4"
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 Adodc2
Height = 435
Left = 4065
Top = 5190
Width = 2040
_ExtentX = 3598
_ExtentY = 767
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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_rkinfo"
Caption = "Adodc2"
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 Label5
Caption = "Label5"
DataField = "房间编号"
DataSource = "Adodc3"
Height = 315
Left = 465
TabIndex = 15
Top = 5250
Width = 675
End
Begin VB.Label Label2
Caption = "Label4"
DataField = "大楼名称"
DataSource = "Adodc4"
Height = 270
Left = 2295
TabIndex = 14
Top = 5160
Width = 1545
End
End
Attribute VB_Name = "frm_yzinfocx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Combo1_Click()
Adodc2.RecordSource = " select * from tab_rkinfo where 小区名称 = '" + Combo1.Text + "'"
Adodc2.Refresh
Adodc4.RecordSource = "select * from tab_dlinfo where 大楼编号 like '" + Combo1.Text + "%'"
Adodc4.Refresh
Adodc3.RecordSource = "select * from tab_fwinfo where 大楼名称='" + DataList1.BoundText + "'"
Adodc3.Refresh
End Sub
Private Sub DataList1_Click()
Adodc3.RecordSource = "select * from tab_fwinfo where 大楼名称='" + DataList1.BoundText + "'"
Adodc3.Refresh
End Sub
Private Sub Form_Load()
Combo2.AddItem ("姓名")
Combo2.AddItem ("身份证号")
Combo2.AddItem ("性别")
Combo2.ListIndex = 0
Combo3.AddItem ("=")
Combo3.AddItem (">")
Combo3.AddItem ("<")
Combo3.AddItem ("<>")
Combo3.AddItem ("like")
Combo3.ListIndex = 0
adors.Open "select 小区名称 from tab_xqinfo group by 小区名称", cn, adOpenKeyset, adLockOptimistic
If adors.RecordCount > 0 Then
adors.MoveFirst
Do While adors.EOF = False
If adors.Fields("小区名称") <> "" Then Combo1.AddItem adors.Fields("小区名称")
adors.MoveNext
Loop
End If
adors.Close
End Sub
Private Sub Command1_Click()
If Combo3.Text = "like" Then
Adodc2.RecordSource = "select * from tab_rkinfo where " & Combo2.Text & " " & Combo3.Text & " '%" & Text1.Text & "%'"
Adodc2.Refresh
Else
Adodc2.RecordSource = "select * from tab_rkinfo where " & Combo2.Text & " " & Combo3.Text & " '" & Text1.Text & "'"
Adodc2.Refresh
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -