|
Option Compare Database
Private Sub Form_Unload(Cancel As Integer)
If Me.Visible = False Then
Me.UsrName = Me.组合0
Me.LogType = "Login"
Me.Time = Now()
End If
End Sub
Private Sub 命令4_Click()
If Me.文本2 <> Me.组合0.Column(1) Then
MsgBox "密码错误!", vbCritical
Else
DoCmd.GoToRecord , , acNewRec
Me.UsrName = Me.组合0
Me.LogType = "Login"
Me.Time = Now()
DoCmd.GoToRecord , , acNewRec
Me.Visible = False
DoCmd.OpenForm "Main"
End If
End Sub
Private Sub 命令5_Click()
DoCmd.Close
End Sub
不好意思!请问:“Form_unload”是什么意思?好象没有unload这个窗口?
我是菜菜鸟 |
|