📄 frm_qstype.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Frm_qstype
Caption = "权属类型设置 "
ClientHeight = 2535
ClientLeft = 60
ClientTop = 345
ClientWidth = 4170
Icon = "Frm_qstype.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 2535
ScaleWidth = 4170
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 350
Left = 2880
TabIndex = 12
Top = 2055
Width = 975
End
Begin MSAdodcLib.Adodc Adodc1
Height = 465
Left = 525
Top = 3255
Width = 1725
_ExtentX = 3043
_ExtentY = 820
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 = 1800
TabIndex = 3
Top = 2055
Width = 975
End
Begin VB.Frame Frame1
Caption = "权属类型添加"
Height = 1875
Left = 120
TabIndex = 0
Top = 120
Width = 3765
Begin VB.ComboBox Combo5
Height = 300
ItemData = "Frm_qstype.frx":1C7A
Left = 2730
List = "Frm_qstype.frx":1C84
Style = 2 'Dropdown List
TabIndex = 11
Top = 1290
Width = 750
End
Begin VB.ComboBox Combo4
Height = 300
ItemData = "Frm_qstype.frx":1C90
Left = 1005
List = "Frm_qstype.frx":1C9A
Style = 2 'Dropdown List
TabIndex = 10
Top = 1290
Width = 765
End
Begin VB.ComboBox Combo3
Height = 300
ItemData = "Frm_qstype.frx":1CA6
Left = 2745
List = "Frm_qstype.frx":1CB0
Style = 2 'Dropdown List
TabIndex = 9
Top = 870
Width = 750
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "Frm_qstype.frx":1CBD
Left = 1020
List = "Frm_qstype.frx":1CC7
Style = 2 'Dropdown List
TabIndex = 8
Top = 870
Width = 735
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "Frm_qstype.frx":1CD4
Left = 1035
List = "Frm_qstype.frx":1CDE
Style = 2 'Dropdown List
TabIndex = 1
Top = 405
Width = 2460
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "私有面积"
Height = 180
Left = 1920
TabIndex = 7
Top = 1335
Width = 720
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "公有面积"
Height = 180
Left = 135
TabIndex = 6
Top = 1335
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "使用面积"
Height = 180
Left = 1905
TabIndex = 5
Top = 915
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "建筑面积"
Height = 180
Left = 150
TabIndex = 4
Top = 930
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "权属类型"
Height = 180
Left = 120
TabIndex = 2
Top = 480
Width = 720
End
End
End
Attribute VB_Name = "Frm_qstype"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click() '确定
Set adors = cn.Execute("insert into tab_qstype values('" & Trim(Combo1) & "','" & Trim(Combo2) & "','" & Trim(Combo3) & "','" & Trim(Combo4) & "','" & Trim(Combo5) & "')")
'Trim 函数返回 Variant (String),其中包含指定字符串的拷贝,没有前导和尾随空白。
MsgBox "数据保存成功!", , "系统提示"
Adodc1.Refresh
cn.Close
End Sub
Private Sub Command2_Click() '退出
Unload Me '退出系统
Frm_jysysdmd.Show '显示系统数据设置窗体
End Sub
Private Sub Form_Load()
'自动识别路径
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db_wygl.mdb;Persist Security Info=False"
Adodc1.RecordSource = "select * from tab_qstype"
Adodc1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -