【VB开源代码栏目提醒】:网学会员在VB开源代码频道为大家收集整理了frm_showEmploy.frm提供大家参考,希望对大家有所帮助!
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm_showEmploy
BorderStyle = 1 'Fixed Single
Caption = "编辑职员基本信息"
ClientHeight = 2160
ClientLeft = 45
ClientTop = 330
ClientWidth = 8295
Icon = "frm_showEmploy.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2160
ScaleWidth = 8295
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 2010
Left = 135
TabIndex = 0
Top = 60
Width = 8025
Begin VB.CommandButton cmdExit
Caption = "退出(&E)"
Height = 420
Left = 6240
TabIndex = 1
Top = 1410
Width = 1500
End
Begin VB.TextBox Text1
Height = 285
Index = 6
Left = 1200
MaxLength = 40
TabIndex = 9
Top = 915
Width = 6675
End
Begin VB.TextBox Text1
Height = 285
Index = 5
Left = 5595
MaxLength = 20
TabIndex = 8
Top = 585
Width = 2265
End
Begin VB.TextBox Text1
Height = 285
Index = 4
Left = 3300
MaxLength = 20
TabIndex = 7
Top = 585
Width = 1305
End
Begin VB.TextBox Text1
Height = 285
Index = 3
Left = 1200
MaxLength = 2
TabIndex = 6
Top = 585
Width = 945
End
Begin VB.TextBox Text1
Height = 285
Index = 2
Left = 5625
MaxLength = 20
TabIndex = 5
Top = 255
Width = 1035
End
Begin VB.TextBox Text1
Height = 285
Index = 1
Left = 3300
MaxLength = 20
TabIndex = 4
Top = 255
Width = 1305
End
Begin VB.TextBox Text1
Height = 285
Index = 0
Left = 1200
Locked = -1 'True
MaxLength = 5
TabIndex = 3
Top = 255
Width = 945
End
Begin VB.CommandButton cmdSave
Caption = "保存(&S)"
Height = 420
Left = 4755
TabIndex = 2
Top = 1410
Width = 1500
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 225
Top = 1320
Visible = 0 'False
Width = 1965
_ExtentX = 3466
_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=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_SSS"
OLEDBString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_SSS"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
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.Label Label1
AutoSize = -1 'True
Caption = "职员全称:"
Height = 180
Index = 6
Left = 2235
TabIndex = 16
Top = 330
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "职员性别:"
Height = 180
Index = 5
Left = 255
TabIndex = 15
Top = 645
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "联系电话:"
Height = 180
Index = 4
Left = 4665
TabIndex = 14
Top = 645
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "所在部门:"
Height = 180
Index = 3
Left = 2235
TabIndex = 13
Top = 645
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "职员简称:"
Height = 180
Index = 2
Left = 4665
TabIndex = 12
Top = 330
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "备 注:"
Height = 180
Index = 1
Left = 225
TabIndex = 11
Top = 945
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "职员编号:"
Height = 180
Index = 0
Left = 255
TabIndex = 10
Top = 330
Width = 900
End
End
End
Attribute VB_Name = "frm_showEmploy"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs1 As New ADODB.Recordset
Dim str As String
Private Sub cmdExit_Click()
frm_basic_employ.Show '窗体的 Show方法 显示指定的窗体
frm_basic_employ.Enabled = True
Unload Me
End Sub
Private Sub cmdsave_Click()
If frm_basic_employ.i = 0 Then 'i 等于零为添加数据
Call cnn
Set rs1 =