?? frmaddliver.frm
字號:
VERSION 5.00
Begin VB.Form frmAddLiver
BorderStyle = 1 'Fixed Single
Caption = "添加住戶信息"
ClientHeight = 3465
ClientLeft = 45
ClientTop = 330
ClientWidth = 8070
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3465
ScaleWidth = 8070
Begin VB.CommandButton updateCommand
Caption = "保存記錄"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 492
Left = 2280
TabIndex = 9
Top = 2760
Width = 1215
End
Begin VB.CommandButton cancelCommand
Caption = "關(guān)閉退出"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 492
Left = 4200
TabIndex = 8
Top = 2760
Width = 1215
End
Begin VB.TextBox txtName
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 1320
TabIndex = 3
Top = 240
Width = 2175
End
Begin VB.TextBox txtPhone
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 4680
TabIndex = 2
Top = 240
Width = 2655
End
Begin VB.TextBox txtComment
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 1320
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 1
Top = 1440
Width = 6015
End
Begin VB.TextBox TxtAddress
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 1320
TabIndex = 0
Top = 840
Width = 5985
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "住戶姓名:"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 7
Top = 345
Width = 1125
End
Begin VB.Label Label4
Alignment = 2 'Center
Caption = "聯(lián)系地址:"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 6
Top = 960
Width = 1170
End
Begin VB.Label Label5
Alignment = 2 'Center
Caption = "電話:"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3720
TabIndex = 5
Top = 360
Width = 855
End
Begin VB.Label Label9
Alignment = 2 'Center
Caption = "備注:"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 150
TabIndex = 4
Top = 1560
Width = 855
End
End
Attribute VB_Name = "frmAddLiver"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cancelCommand_Click()
Unload Me
End Sub
Private Sub updateCommand_Click()
Dim txtSQL As String
Dim MsgText As String
Dim mrcc As ADODB.Recordset
If Not Testtxt(txtName.Text) Then
MsgBox "請輸入住戶名稱!", vbOKOnly + vbExclamation, "警告"
txtName.SetFocus
Exit Sub
End If
If Not Testtxt(txtPhone.Text) Then
MsgBox "請輸入電話!", vbOKOnly + vbExclamation, "警告"
txtName.SetFocus
Exit Sub
End If
If Not Testtxt(TxtAddress.Text) Then
MsgBox "請輸入聯(lián)系地址!", vbOKOnly + vbExclamation, "警告"
txtName.SetFocus
Exit Sub
End If
Dim tempLiver As clsLiver
Set tempLiver = New clsLiver
tempLiver.AddNew txtName.Text, txtPhone.Text, TxtAddress.Text, txtComment.Text
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -