📄 upbsystem.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"
Begin VB.Form UpBSystem
Caption = "生日餐会系统升级"
ClientHeight = 2400
ClientLeft = 60
ClientTop = 450
ClientWidth = 5085
LinkTopic = "Form1"
ScaleHeight = 2400
ScaleWidth = 5085
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 120
Top = 1800
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 661
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=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\jp\vb\生日餐会系统\BSystem.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\jp\vb\生日餐会系统\BSystem.mdb"
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.CommandButton Command3
Caption = "完成"
Height = 495
Left = 1800
TabIndex = 4
Top = 1800
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 495
Left = 2520
TabIndex = 3
Top = 1800
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "更新"
Height = 495
Left = 1080
TabIndex = 1
Top = 1800
Width = 1095
End
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 495
Left = 240
TabIndex = 0
Top = 240
Width = 4575
_ExtentX = 8070
_ExtentY = 873
_Version = 393216
Appearance = 1
End
Begin VB.Label Label1
Caption = "Label1"
Height = 615
Left = 480
TabIndex = 2
Top = 960
Width = 3015
End
End
Attribute VB_Name = "UpBSystem"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Const strVerInfo = "Ver:2005-8-31" '升级版本信息
Private Sub Command1_Click()
Dim strSel As String
'Dim conn As New ADODB.Connection
'定义ADO数据库对象
'conn.Provider = "Microsoft.Jet.OLEDB.3.51"
'conn.ConnectionString = "Data Sourceserver= " & App.Path & "\BSystem.mdb;"
'conn.Open 'App.Path & "\BSystem.mdb"
'conn.Open
'conn.Execute (updpass & "'" & txtnew.Text & "'" & "where user =" & "'" & lbluser.Caption & "'")
'adonew.Refresh
'conn.Close
'Microsoft Jet database
strSel = "ALTER TABLE 餐会信息 ALTER COLUMN Emp_Email TYPE text(50);" 'ALTER COLUMN 定餐内容 TEXT(300);"
'strSel = "ALTER TABLE 餐会信息 ADD COLUMN Emp_Email text(30);"
'strSel = "ALTER TABLE 餐会信息 DROP COLUMN Emp_Email RESTRICT;"
'conn.Execute strSel
'Data1.RecordSource = strSel
'Data1.ReadOnly = False
'Data1.Refresh
'conn.Execute strSel
Adodc1.RecordSource = strSel
Adodc1.Refresh
Command1.Visible = False
Command2.Visible = False
Command3.Visible = True
End Sub
Private Sub Command2_Click()
Data1.Database.Close
Unload Me
End Sub
Private Sub Form_Load()
Label1.Caption = strVerInfo
Adodc1.RecordSource = App.Path & "\BSystem.mdb"
ProgressBar1.Value = ProgressBar1.Min
Command3.Visible = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -