?? 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 + -