📄 frmkhxx.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "Msadodc.OCX"
Begin VB.Form FRMKHXX
BorderStyle = 3 'Fixed Dialog
Caption = "客户信息设置"
ClientHeight = 7365
ClientLeft = 45
ClientTop = 330
ClientWidth = 7110
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "FRMKHXX.frx":0000
ScaleHeight = 7365
ScaleWidth = 7110
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin MSDataGridLib.DataGrid msglist
Bindings = "FRMKHXX.frx":803B
Height = 2175
Left = 360
TabIndex = 16
Top = 4680
Width = 6135
_ExtentX = 10821
_ExtentY = 3836
_Version = 393216
BackColor = 16744576
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 615
Left = 0
TabIndex = 13
Top = 0
Width = 7110
_ExtentX = 12541
_ExtentY = 1085
ButtonWidth = 1455
ButtonHeight = 926
Appearance = 1
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 4
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "添 加"
Key = "TJ"
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "删 除"
Key = "SC"
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "刷 新"
Key = "BC"
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = " 取 消 "
Key = "QX"
EndProperty
EndProperty
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 7200
Top = 120
Visible = 0 'False
Width = 1215
_ExtentX = 2143
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Password=515515;Persist Security Info=True;User ID=sa;Data Source=login"
OLEDBString = "Provider=MSDASQL.1;Password=515515;Persist Security Info=True;User ID=sa;Data Source=login"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from users"
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
End
Begin VB.Frame Frame1
BackColor = &H00FF8080&
Caption = "客户信息设置:"
Height = 3495
Left = 360
TabIndex = 2
Top = 1080
Width = 6132
Begin VB.ComboBox Combo1
DataField = "填表日期"
DataSource = "Adodc1"
Enabled = 0 'False
Height = 300
Left = 1200
TabIndex = 15
Text = "Combo1"
Top = 1560
Width = 1455
End
Begin VB.TextBox txtItem
DataField = "备注"
DataSource = "Adodc1"
Height = 1080
Index = 11
Left = 1200
MaxLength = 80
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 12
Top = 2040
Width = 4692
End
Begin VB.TextBox txtItem
DataField = "备用电话"
DataSource = "Adodc1"
Height = 276
Index = 4
Left = 3840
MaxLength = 20
ScrollBars = 2 'Vertical
TabIndex = 11
Top = 1080
Width = 2052
End
Begin VB.TextBox txtItem
DataField = "电话"
DataSource = "Adodc1"
Height = 276
Index = 3
Left = 1200
MaxLength = 10
ScrollBars = 2 'Vertical
TabIndex = 10
Top = 1080
Width = 1572
End
Begin VB.TextBox txtItem
DataField = "地址"
DataSource = "Adodc1"
Height = 276
Index = 2
Left = 1200
MaxLength = 40
ScrollBars = 2 'Vertical
TabIndex = 8
Top = 720
Width = 4692
End
Begin VB.TextBox txtItem
DataField = "编号"
DataSource = "Adodc1"
Height = 270
Index = 0
Left = 1200
MaxLength = 8
TabIndex = 0
Top = 360
Width = 1572
End
Begin VB.TextBox txtItem
DataField = "姓名"
DataSource = "Adodc1"
Height = 270
Index = 1
Left = 3840
MaxLength = 20
TabIndex = 1
Top = 360
Width = 2052
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "填表日期:"
Height = 375
Left = 240
TabIndex = 14
Top = 1560
Width = 1215
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "备注信息:"
Height = 255
Index = 10
Left = 240
TabIndex = 9
Top = 2400
Width = 1095
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "备用电话:"
Height = 252
Index = 7
Left = 2880
TabIndex = 7
Top = 1080
Width = 1092
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "电 话:"
Height = 252
Index = 6
Left = 240
TabIndex = 6
Top = 1080
Width = 1092
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "地 址:"
Height = 252
Index = 5
Left = 240
TabIndex = 5
Top = 720
Width = 1092
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "编 号:"
Height = 252
Index = 0
Left = 240
TabIndex = 4
Top = 360
Width = 1092
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "姓 名:"
Height = 252
Index = 1
Left = 2880
TabIndex = 3
Top = 360
Width = 1092
End
End
End
Attribute VB_Name = "FRMKHXX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
Case 1
On Error Resume Next
Adodc1.Recordset.AddNew
Adodc1.Recordset("编号") = ""
Adodc1.Recordset("姓名") = ""
Adodc1.Recordset("地址") = ""
Adodc1.Recordset("电话") = ""
Adodc1.Recordset("备用电话") = ""
Adodc1.Recordset("备注") = ""
Adodc1.Recordset("填表日期") = Format(Date, "yy-mm-dd")
Adodc1.Recordset.MoveLast
Case 2
If Not (Adodc1.Recordset.EOF Or Adodc1.Recordset.BOF) Then
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
End If
Case 3
msglist.Refresh
Case 4
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -