📄 frm_fwxx.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 frm_fwxx
Caption = "房屋信息"
ClientHeight = 3450
ClientLeft = 60
ClientTop = 345
ClientWidth = 6570
Icon = "frm_fwxx.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3450
ScaleWidth = 6570
StartUpPosition = 1 '所有者中心
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 705
Top = 3750
Width = 1725
_ExtentX = 3043
_ExtentY = 582
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 = ""
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
Begin VB.CommandButton Command1
Caption = "选择记录"
Height = 350
Left = 5550
TabIndex = 1
Top = 3060
Width = 900
End
Begin VB.Frame Frame1
Height = 2880
Left = 90
TabIndex = 0
Top = 75
Width = 6420
Begin MSDataGridLib.DataGrid DataGrid1
Height = 2505
Left = 90
TabIndex = 2
Top = 210
Width = 6180
_ExtentX = 10901
_ExtentY = 4419
_Version = 393216
HeadLines = 1
RowHeight = 15
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 = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
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
End
End
Attribute VB_Name = "frm_fwxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Command1_Click() '选择记录
On Error Resume Next
frm_fwinfo.Text1.Text = Adodc1.Recordset.Fields("房间编号")
frm_fwinfo.Text2.Text = Adodc1.Recordset.Fields("单元")
frm_fwinfo.Text3.Text = Adodc1.Recordset.Fields("楼层")
' frm_fwinfo.Text4.Text = Adodc1.Recordset.Fields("户主姓名")
frm_fwinfo.Text6.Text = Adodc1.Recordset.Fields("建筑面积")
frm_fwinfo.Text7.Text = Adodc1.Recordset.Fields("使用面积")
frm_fwinfo.Text8.Text = Adodc1.Recordset.Fields("公产面积")
frm_fwinfo.Text9.Text = Adodc1.Recordset.Fields("私产面积")
frm_fwinfo.Text12.Text = Adodc1.Recordset.Fields("小区名称")
frm_fwinfo.Text13.Text = Adodc1.Recordset.Fields("大楼名称")
frm_fwinfo.Text14.Text = Adodc1.Recordset.Fields("朝向")
frm_fwinfo.Text15.Text = Adodc1.Recordset.Fields("权属类型")
frm_fwinfo.Text16.Text = Adodc1.Recordset.Fields("房间结构")
frm_fwinfo.Text17.Text = Adodc1.Recordset.Fields("配备设施")
frm_fwinfo.Text18.Text = Adodc1.Recordset.Fields("房间类别")
frm_fwinfo.Combo1.Text = Adodc1.Recordset.Fields("房屋状态")
Me.Hide
frm_fwinfo.Show
End Sub
Private Sub Form_Load()
'Sleep 100
'自动识别路径
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db_wygl.mdb;Persist Security Info=False"
Adodc1.RecordSource = "select * from tab_fwinfo"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
Me.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -