Why not just connect the tables with permanent password, but have the user login at the start of the app?
Eliminate the backend login time, but still login to the front using Windows authentication.
Valid users get into the db. If fails, exit the db.
Code:
'usage:
If WindowsLogin(txtUser, txtpASS, txtDomain) Then
docmd.openform "frmMainMenu"
Else
docmd.quit
End If
Public Function WindowsLogin(ByVal strUserName As String, ByVal strpassword As String, ByVal strDomain As String) As Boolean
'Authenticates user and password entered with Active Directory.
On Error GoTo IncorrectPassword
Dim oADsObject, oADsNamespace As Object
Dim strADsPath As String
strADsPath = "WinNT://" & strDomain
Set oADsObject = GetObject(strADsPath)
Set oADsNamespace = GetObject("WinNT:")
Set oADsObject = oADsNamespace.OpenDSObject(strADsPath, strDomain & "\" & strUserName, strpassword, 0)
WindowsLogin = True 'ACCESS GRANTED
ExitSub:
Exit Function
IncorrectPassword:
WindowsLogin = False 'ACCESS DENIED
Resume ExitSub
End Function