📄 frm管理.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frm管理
Caption = "数据管理"
ClientHeight = 8595
ClientLeft = 165
ClientTop = 450
ClientWidth = 11400
LinkTopic = "Form1"
ScaleHeight = 8595
ScaleWidth = 11400
StartUpPosition = 2 '屏幕中心
WindowState = 2 'Maximized
Begin VB.CommandButton Command2
Caption = "退出数据管理"
Height = 375
Left = 6240
TabIndex = 5
Top = 9600
Width = 1665
End
Begin VB.CommandButton Command1
Caption = "数据更新"
Height = 375
Left = 4080
TabIndex = 3
Top = 9600
Width = 1665
End
Begin MSDataGridLib.DataGrid DbGrid
Bindings = "frm管理.frx":0000
Height = 9135
Left = 0
TabIndex = 2
Top = 120
Width = 15165
_ExtentX = 26749
_ExtentY = 16113
_Version = 393216
AllowUpdate = -1 'True
HeadLines = 1
RowHeight = 17
AllowDelete = -1 'True
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 = 11.25
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 VB.CommandButton Command5
Caption = "入库操作"
Height = 375
Left = 120
TabIndex = 1
Top = 9600
Width = 1665
End
Begin VB.CommandButton Command6
Caption = "删除无用数据"
Height = 375
Left = 2040
TabIndex = 0
Top = 9600
Width = 1665
End
Begin MSAdodcLib.Adodc Adodc1
Height = 735
Left = 6840
Top = 4920
Visible = 0 'False
Width = 1575
_ExtentX = 2778
_ExtentY = 1296
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=电脑经营系统"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "电脑经营系统"
OtherAttributes = ""
UserName = ""
Password = "14813808"
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 MSComctlLib.StatusBar sbStatusBar
Align = 2 'Align Bottom
Height = 270
Left = 0
TabIndex = 4
Top = 8325
Width = 11400
_ExtentX = 20108
_ExtentY = 476
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 14420
Text = "状态"
TextSave = "状态"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
AutoSize = 2
TextSave = "03-6-13"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
AutoSize = 2
TextSave = "9:50"
EndProperty
EndProperty
End
End
Attribute VB_Name = "frm管理"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Set conn = New ADODB.Connection
conn.Open "DSN=电脑经营系统", ";pwd=14813808"
Dim rs As New ADODB.Recordset
rs.Open "select * from 公司业务情况", conn, 3, 2
Set DbGrid.DataSource = rs
DbGrid.Refresh
Adodc1.RecordSource = "select * from 公司业务情况"
DbGrid.Refresh
End Sub
Private Sub Command2_Click()
Me.Hide
Unload Me
frmadm.Show
End Sub
Private Sub Form_Load()
DbGrid.Refresh
End Sub
Private Sub Form_Unload(Cancel As Integer)
frmadm.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -