📄 topwin.frm
字号:
VERSION 5.00
Begin VB.Form Frmstart
BorderStyle = 0 'None
Caption = "WELCOME"
ClientHeight = 3435
ClientLeft = 0
ClientTop = 0
ClientWidth = 5520
Icon = "topwin.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "topwin.frx":030A
ScaleHeight = 3435
ScaleWidth = 5520
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Timer Timer1
Interval = 400
Left = 480
Top = 600
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "学生自创版"
BeginProperty Font
Name = "楷体_GB2312"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFF80&
Height = 315
Left = 1920
TabIndex = 0
Top = 2325
Width = 1725
End
End
Attribute VB_Name = "Frmstart"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Frmcount As Integer
Private Sub Form_Load()
Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
Set module1.cn = New ADODB.Connection
module1.cn.Open "Dbq=" & App.Path & "\data\yp.mdb;Driver={Microsoft Access Driver (*.mdb)}"
Dim gq_rs As ADODB.Recordset
Set gq_rs = Ex_Sql("select 编号,失效期 from kcyp ")
While gq_rs.EOF = False
If gq_rs.Fields(1) <= Now Then
Ex_Sql "update kcyp set 失效标记=true where 编号='" & gq_rs.Fields(0) & "'"
End If
gq_rs.MoveNext
Wend
End Sub
Private Sub Timer1_Timer()
If Frmcount = 2 Then
Timer1.Enabled = False
frmlogin.Show
Unload Me
End If
Frmcount = Frmcount + 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -