frm_task.frm
来自「很好一套库存管理」· FRM 代码 · 共 188 行
FRM
188 行
VERSION 5.00
Begin VB.Form FRM_TASK
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
Caption = "Reminder Of the Day"
ClientHeight = 1515
ClientLeft = 45
ClientTop = 435
ClientWidth = 5280
Icon = "FRM_TASK.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 1515
ScaleWidth = 5280
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Caption = "0"
BeginProperty Font
Name = "Verdana"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 6
Left = 3360
TabIndex = 6
Top = 1080
Width = 1815
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Caption = "0"
BeginProperty Font
Name = "Verdana"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 5
Left = 3360
TabIndex = 5
Top = 720
Width = 1815
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Caption = "0"
BeginProperty Font
Name = "Verdana"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 4
Left = 3360
TabIndex = 4
Top = 360
Width = 1815
End
Begin VB.Label Label1
Alignment = 2 'Center
BackColor = &H00E0E0E0&
Caption = "Date"
BeginProperty Font
Name = "Arial Unicode MS"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 3
Left = 0
TabIndex = 3
Top = 0
Width = 5295
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Caption = "Purchase Payment Due"
BeginProperty Font
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 2
Left = 120
TabIndex = 2
Top = 1080
Width = 3015
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Caption = "Sales Payment Due"
BeginProperty Font
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 1
Left = 120
TabIndex = 1
Top = 720
Width = 3015
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Caption = "Expired Internet Connections"
BeginProperty Font
Name = "Verdana"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Index = 0
Left = 120
TabIndex = 0
Top = 360
Width = 3015
End
End
Attribute VB_Name = "FRM_TASK"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim r_pur As New ADODB.Recordset
Dim r_sales As New ADODB.Recordset
Dim r_int As New ADODB.Recordset
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then
Unload Me
End If
End Sub
Private Sub Form_Load()
KeyPreview = True
Label1(3).Caption = Now
Me.Left = 5505
Me.Top = 5310
r_pur.Open "select count(*) from AMT_UNPAID_REMIND WHERE TRAN_TYPE='PURCHASE'", db, adOpenKeyset, adLockOptimistic
Label1(6).Caption = r_pur.Fields(0).Value
r_sales.Open "select count(*) from AMT_UNPAID_REMIND WHERE TRAN_TYPE='SALES'", db, adOpenDynamic, adLockOptimistic
Label1(5).Caption = r_sales.Fields(0).Value
r_int.Open "select count(*) from INTERNET_CONNECTIONS WHERE EXPIRE_DATE <=" & Date, db, adOpenKeyset, adLockOptimistic
Label1(4).Caption = r_int.Fields(0).Value
End Sub
Private Sub Form_Unload(Cancel As Integer)
r_pur.Close
r_sales.Close
r_int.Close
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?