📄 frmcltedit.frm
字号:
VERSION 5.00
Begin VB.Form frmcltedit
Caption = "Form1"
ClientHeight = 7275
ClientLeft = 60
ClientTop = 345
ClientWidth = 10515
LinkTopic = "Form1"
ScaleHeight = 7275
ScaleWidth = 10515
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton cmd_cancel
Caption = "取 消"
Height = 615
Left = 5040
TabIndex = 12
Top = 5280
Width = 1575
End
Begin VB.Frame Frame1
Height = 5895
Left = 480
TabIndex = 0
Top = 600
Width = 9855
Begin VB.CommandButton cmd_ok
Caption = "确 定"
Height = 615
Left = 2160
TabIndex = 11
Top = 4680
Width = 1575
End
Begin VB.TextBox txtaddr
Height = 735
Left = 1440
TabIndex = 10
Top = 3360
Width = 5655
End
Begin VB.TextBox txtphone
Height = 495
Left = 1440
TabIndex = 8
Top = 2520
Width = 2175
End
Begin VB.TextBox txtcode
Height = 495
Left = 5160
TabIndex = 6
Top = 1440
Width = 1935
End
Begin VB.TextBox txtcontact
Height = 495
Left = 1440
TabIndex = 4
Top = 1440
Width = 2055
End
Begin VB.TextBox txtorg
Height = 615
Left = 1440
TabIndex = 2
Top = 480
Width = 5655
End
Begin VB.Label Label6
Caption = "通讯地址"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 9
Top = 3600
Width = 1335
End
Begin VB.Label Label4
Caption = "联系电话"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 7
Top = 2640
Width = 1215
End
Begin VB.Label Label3
Caption = "邮政编码"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 3840
TabIndex = 5
Top = 1560
Width = 1215
End
Begin VB.Label Label2
Caption = "联系人"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 3
Top = 1560
Width = 1215
End
Begin VB.Label Label1
Caption = "客户单位"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 240
TabIndex = 1
Top = 600
Width = 1935
End
End
End
Attribute VB_Name = "frmcltedit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriId As Long
Public OriName As String
Private Sub Cmd_OK_Click()
'检查录入数据的有效性
If Trim(txtorg) = "" Then
MsgBox "请输入客户单位"
'txtorg.SetFocus
Exit Sub
End If
DB_Connect
SqlStmt = "insert into client " _
+ " values ('" + Trim(txtorg) + "','" + Trim(txtcontact) + "','" + Trim(txtaddr) + "','" + Trim(txtcode) + "','" + Trim(txtphone) + "')"
OdbcExt (SqlStmt)
Rc = SQLFreeStmt(Hstmt, SQL_DROP)
DB_Disconnect
Unload Me
Unload frmcltman
frmcltman.Show 1
End Sub
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub txtContact_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
End Sub
Private Sub txtOrg_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
End Sub
Private Sub txtAddr_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
End Sub
Private Sub txtCode_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
If In_Int(KeyAscii) = False Then
KeyAscii = 0
End If
End Sub
Private Sub txtPhone_KeyPress(KeyAscii As Integer)
EnterTAB (KeyAscii)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -