Private Sub Command7_Click()
Dim loginacc As String
Dim password As String
If IsNull(DLookup("[loginacc]", "[accdata]", "[loginacc]=""&loginacc.value&""")) Then
MsgBox "??祥湔婓"
Me.loginacc.Value = Null
Me.loginacc.SetFocus
Else
loginacc = Me.loginacc.Value
If IsNull(DLookup("[password]", "[accdata]", "[password]=""&password.value&""")) Then
MsgBox "躇徨嶒悷"
Me.password.SetFocus
Me.password.Value = Null
Else
DoCmd.OpenForm "mainmeau"
DoCmd.Close acForm, "login"
End If
End If
End Sub