📄 frmuserlogout.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form frmUserLogout
Caption = "用户注销"
ClientHeight = 6495
ClientLeft = 2280
ClientTop = 1275
ClientWidth = 9150
Icon = "frmUserLogout.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6495
ScaleWidth = 9150
StartUpPosition = 2 '屏幕中心
Begin MSDBGrid.DBGrid DBGrid
Bindings = "frmUserLogout.frx":0442
Height = 4335
Left = 248
OleObjectBlob = "frmUserLogout.frx":0455
TabIndex = 6
Top = 720
Width = 8655
End
Begin VB.Data Data
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 405
Left = 1028
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 5280
Width = 7095
End
Begin VB.CommandButton cmdRecall
Caption = "撤消"
Height = 375
Left = 2943
TabIndex = 3
Top = 5880
Width = 1335
End
Begin VB.CommandButton cmdSave
Caption = "存盘"
Height = 375
Left = 4871
TabIndex = 4
Top = 5880
Width = 1335
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 6801
TabIndex = 5
Top = 5880
Width = 1335
End
Begin VB.CommandButton cmdLogout
Caption = "注销"
Height = 375
Left = 1015
TabIndex = 2
Top = 5880
Width = 1335
End
Begin VB.ComboBox comRegion
Height = 300
Left = 1440
Style = 2 'Dropdown List
TabIndex = 1
Top = 240
Width = 1335
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "选择分区:"
Height = 180
Left = 240
TabIndex = 0
Top = 300
Width = 810
End
End
Attribute VB_Name = "frmUserLogout"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdLogout_Click()
Data.Recordset.Edit
Data.Recordset.Fields("注销") = True
End Sub
Private Sub cmdRecall_Click()
Data.Recordset.Edit
Data.Recordset.Fields("注销") = False
End Sub
Private Sub cmdSave_Click()
Data.UpdateRecord
Data.Refresh
End Sub
Private Sub comRegion_Click()
'根据分区号选择分区
Dim RegionNumber As Integer, strSQL As String
RegionNumber = comRegion.ListIndex + 1
strSQL = "select * from 用户档案 where 分区=" & RegionNumber
Data.RecordSource = strSQL
Data.Refresh
End Sub
Private Sub Data_Reposition()
Data.Caption = "记录:" & Data.Recordset.AbsolutePosition + 1
End Sub
Private Sub Form_Load()
Dim i As Integer
For i = 1 To RegionNumber
comRegion.AddItem i
Next
'设定数据控件属性
Data.DatabaseName = App.Path & "\用户档案.mdb"
Data.RecordSource = "用户档案"
Data.Refresh '刷新数据控件
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -