📄 frmunwriteuser.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form frmUnwriteUser
Caption = "未抄表用户"
ClientHeight = 6300
ClientLeft = 60
ClientTop = 345
ClientWidth = 9030
Icon = "frmUnwriteUser.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6300
ScaleWidth = 9030
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton cmdPrint
Caption = "打印(&P)"
Default = -1 'True
Height = 375
Left = 2655
TabIndex = 3
Top = 5640
Width = 1200
End
Begin VB.ComboBox comRegion
Height = 300
Left = 1680
Style = 2 'Dropdown List
TabIndex = 1
Top = 120
Width = 1455
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "frmUnwriteUser.frx":0442
Height = 4215
Left = 248
OleObjectBlob = "frmUnwriteUser.frx":0456
TabIndex = 2
Top = 600
Width = 8535
End
Begin VB.Data Data1
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 968
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 5040
Width = 7095
End
Begin VB.CommandButton cmdExit
Cancel = -1 'True
Caption = "退出(&X)"
Height = 375
Left = 5175
TabIndex = 4
Top = 5640
Width = 1200
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "选择分区:"
Height = 180
Left = 600
TabIndex = 0
Top = 180
Width = 810
End
End
Attribute VB_Name = "frmUnwriteUser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub cmdPrint_Click()
Me.PrintForm
Printer.EndDoc
End Sub
Private Sub comRegion_Click()
'根据分区号选择分区
Dim RegionNumber As Integer, strSQL As String
RegionNumber = comRegion.ListIndex + 1
strSQL = "select 编号,户名,地址,电话,户型 from 用户档案 where 终止读数=0" _
& " and 分区=" & RegionNumber
Data1.RecordSource = strSQL
Data1.Refresh
End Sub
Private Sub Data1_Reposition()
Data1.Caption = "记录:" & Data1.Recordset.AbsolutePosition + 1
End Sub
Private Sub Form_Load()
'给组合框添加列表项
Dim i As Integer
For i = 1 To RegionNumber
comRegion.AddItem i
Next
Dim strSQL As String
Data1.DatabaseName = App.Path & "\用户档案.mdb"
strSQL = "select 编号,户名,地址,电话,户型 from 用户档案 where 终止读数=0"
Data1.RecordSource = strSQL
Data1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -