📄 frm_xqdj.frm
字号:
VERSION 5.00
Begin VB.Form frm_xqmz
Caption = "小区名称设置"
ClientHeight = 3120
ClientLeft = 1965
ClientTop = 3270
ClientWidth = 7635
LinkTopic = "Form2"
MaxButton = 0 'False
ScaleHeight = 3120
ScaleWidth = 7635
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "G:\zhkl\db_wyfy.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 615
Left = 2880
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "db_xqmz"
Top = 3600
Visible = 0 'False
Width = 1935
End
Begin VB.Frame Frame3
Height = 615
Left = 360
TabIndex = 9
Top = 2370
Width = 3135
Begin VB.CommandButton Command9
Caption = ">|"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2260
TabIndex = 13
Top = 160
Width = 700
End
Begin VB.CommandButton Command8
Caption = ">"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1560
TabIndex = 12
Top = 160
Width = 700
End
Begin VB.CommandButton Command7
Caption = "<"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 820
TabIndex = 11
Top = 160
Width = 700
End
Begin VB.CommandButton Command6
Caption = "|<"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 100
TabIndex = 10
Top = 160
Width = 700
End
End
Begin VB.Frame Frame2
Height = 615
Left = 3600
TabIndex = 3
Top = 2370
Width = 3855
Begin VB.CommandButton Command5
Caption = "退出"
Height = 375
Left = 2980
TabIndex = 8
Top = 160
Width = 700
End
Begin VB.CommandButton Command4
Caption = "浏览"
Height = 375
Left = 2280
TabIndex = 7
Top = 160
Width = 700
End
Begin VB.CommandButton Command3
Caption = "删除"
Height = 375
Left = 1560
TabIndex = 6
Top = 160
Width = 700
End
Begin VB.CommandButton Command2
Caption = "修改"
Height = 375
Left = 840
TabIndex = 5
Top = 160
Width = 700
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 375
Left = 120
TabIndex = 4
Top = 160
Width = 700
End
End
Begin VB.Frame Frame1
Caption = "小区名称登记"
Height = 1455
Left = 360
TabIndex = 1
Top = 600
Width = 7095
Begin VB.TextBox Text2
Appearance = 0 'Flat
DataField = "物管处电话"
DataSource = "Data1"
Height = 375
Left = 1680
TabIndex = 16
Top = 880
Width = 5055
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
DataField = "小区名称"
DataSource = "Data1"
Height = 375
Left = 1680
TabIndex = 14
Top = 400
Width = 5055
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "小区物管处电话:"
Height = 180
Left = 240
TabIndex = 15
Top = 960
Width = 1440
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "小区名称:"
Height = 180
Left = 240
TabIndex = 2
Top = 480
Width = 900
End
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "小区名称设置"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 2520
TabIndex = 0
Top = 240
Width = 1530
End
End
Attribute VB_Name = "frm_xqmz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Data1.Refresh
Data1.Recordset.AddNew
Data1.Recordset.Fields("小区名称") = Text1.Text
Data1.Recordset.Fields("物管处电话") = Text2.Text
End Sub
Private Sub Command2_Click()
Text1.Text = ""
End Sub
Private Sub Command3_Click()
If Data1.Recordset.RecordCount > 0 Then
myval = MsgBox("确定删除吗?", vbYesNo)
If myval = vbYes Then
Data1.Recordset.Delete
Data1.Refresh
Else
End If
Else
MsgBox "数据库中没有记录要删除"
End If
End Sub
Private Sub Command4_Click()
frm_xqll.Show
End Sub
Private Sub Command5_Click()
Unload Me
End Sub
Private Sub Command6_Click()
Data1.Recordset.MoveFirst
End Sub
Private Sub Command7_Click()
Data1.Recordset.MovePrevious
If Data1.Recordset.BOF Then Data1.Recordset.MoveFirst
End Sub
Private Sub Command8_Click()
Data1.Recordset.MoveNext
If Data1.Recordset.EOF Then Data1.Recordset.MoveLast
End Sub
Private Sub Command9_Click()
Data1.Recordset.MoveLast
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -