📄 frm_tsinfo.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Frm_tsinfo
Caption = "住户投诉登记表"
ClientHeight = 3420
ClientLeft = 60
ClientTop = 450
ClientWidth = 7575
Icon = "Frm_tsinfo.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3420
ScaleWidth = 7575
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "取 消"
Height = 435
Left = 6540
TabIndex = 21
Top = 690
Width = 885
End
Begin VB.CommandButton Command2
Caption = "保 存"
Height = 435
Left = 6540
TabIndex = 20
Top = 1320
Width = 885
End
Begin VB.CommandButton Command4
Caption = "返 回"
Height = 435
Left = 6540
TabIndex = 19
Top = 1950
Width = 885
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 930
Top = 3480
Width = 5580
_ExtentX = 9843
_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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\毕业设计\TIZIANO.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\毕业设计\TIZIANO.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_投诉记录"
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.Frame Frame1
Caption = "投诉信息登记栏"
Height = 3165
Left = 120
TabIndex = 0
Top = 120
Width = 6270
Begin VB.TextBox Text9
DataField = "事后总结"
DataSource = "Adodc1"
Height = 555
Left = 1080
ScrollBars = 2 'Vertical
TabIndex = 17
Top = 2400
Width = 5055
End
Begin VB.TextBox Text7
DataField = "完成时间"
DataSource = "Adodc1"
Height = 300
Left = 4290
TabIndex = 15
Top = 1200
Width = 1845
End
Begin VB.TextBox Text8
DataField = "事情概况"
DataSource = "Adodc1"
Height = 555
Left = 1080
ScrollBars = 2 'Vertical
TabIndex = 13
Top = 1680
Width = 5055
End
Begin VB.TextBox Text1
DataField = "记录号"
DataSource = "Adodc1"
Height = 300
Left = 1080
TabIndex = 6
Top = 300
Width = 1410
End
Begin VB.TextBox Text5
DataField = "接待人"
DataSource = "Adodc1"
Height = 300
Left = 5135
TabIndex = 5
Top = 735
Width = 1000
End
Begin VB.TextBox Text2
DataField = "投诉项目"
DataSource = "Adodc1"
Height = 300
Left = 3570
TabIndex = 4
Top = 315
Width = 2565
End
Begin VB.TextBox Text6
DataField = "接待时间"
DataSource = "Adodc1"
Height = 300
Left = 1080
TabIndex = 3
Top = 1200
Width = 1965
End
Begin VB.TextBox Text3
DataField = "别墅编号"
DataSource = "Adodc1"
Height = 300
Left = 1080
TabIndex = 2
Top = 735
Width = 915
End
Begin VB.TextBox Text4
DataField = "投诉人姓名"
DataSource = "Adodc1"
Height = 300
Left = 3120
TabIndex = 1
Top = 735
Width = 1000
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "事后总结:"
Height = 180
Left = 90
TabIndex = 18
Top = 2610
Width = 900
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "完成时间:"
Height = 180
Left = 3240
TabIndex = 16
Top = 1260
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "事情概况:"
Height = 180
Left = 150
TabIndex = 14
Top = 1890
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "接待人:"
Height = 180
Left = 4320
TabIndex = 12
Top = 795
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "投诉编号:"
Height = 180
Left = 120
TabIndex = 11
Top = 360
Width = 900
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "投诉项目:"
Height = 180
Left = 2640
TabIndex = 10
Top = 360
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "接待时间:"
Height = 180
Left = 120
TabIndex = 9
Top = 1260
Width = 900
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "别墅编号:"
Height = 180
Left = 120
TabIndex = 8
Top = 795
Width = 900
End
Begin VB.Label Label15
AutoSize = -1 'True
Caption = "投诉人姓名:"
Height = 180
Left = 2040
TabIndex = 7
Top = 795
Width = 1080
End
End
End
Attribute VB_Name = "Frm_tsinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
End Sub
Private Sub Command2_Click()
If Text1 = "" Or Text2 = "" Or Text3 = "" Then
MsgBox "各项基本信息不能为空"
Text1.SetFocus
Else
Adodc1.Recordset.Fields(0) = Trim(Text1.Text)
Adodc1.Recordset.Fields(1) = Trim(Text2.Text)
Adodc1.Recordset.Fields(2) = Trim(Text3.Text)
Adodc1.Recordset.Fields(3) = Trim(Text4.Text)
Adodc1.Recordset.Fields(4) = Trim(Text5.Text)
Adodc1.Recordset.Fields(5) = Trim(Text6.Text)
Adodc1.Recordset.Fields(6) = Trim(Text7.Text)
Adodc1.Recordset.Fields(7) = Trim(Text8.Text)
Adodc1.Recordset.Fields(8) = Trim(Text9.Text)
Adodc1.Recordset.Update
End If
Unload Frm_tsinfo
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
Frm_tsinfocu.GurhanCoolButton1.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -