First is in th OK button of the Loggin
Second is the hidden form that pops up and checks links. Maybe becaus eits hidden?
-Doug
-----------------------------------------------------
Private Sub BOK_Click()
On Error Resume Next
Dim y
Dim x
Dim vNewPassword
Dim vUserID As Long
Dim vPassword
On Error GoTo InvalidUserName
vUserID = DLookup("[UserID]", "SecurityUsers", "[UserName] = '" & Me.UserName & "'"

On Error GoTo InvalidPassword
vPassword = DLookup("[Password]", "SecurityUsers", "[UserID] = " & vUserID)
If vPassword <> Me.Password Or IsNull(Me.Password) Then GoSub InvalidPassword
If vPassword = "Password" Then
x = MsgBox("You still have the default password. Do you want to change the password now?", vbYesNo, "CHANGE INFO"

If x = vbYes Then
DoCmd.Close
DoCmd.OpenForm "SecurityChangeUserInfo", , , "[SecurityUsers]![UserID] = " & vUserID, , acDialog
Exit Sub
End If
End If
'Set Global Variables For Security
vCurrentUserID = vUserID
vCurrentUserName = Me.UserName
vCurrentPermission = DLookup("[Permissions]", "SecurityUsers", "[UserID] = " & vUserID)
vCurrentGroup = DLookup("[Group]", "SecurityUsers", "[UserID] = " & vUserID)
vSecurityOn = DLookup("[DefaultValue]", "DefaultSettings", "[DefaultID] = 'SecurityOn'"
RecordLoggin (vUserID)
DoCmd.Close
DoCmd.OpenForm "frmCheckLink", , , , , acDialog
Exit Sub
-----------------------
Then in the frmCheckLink form this is a hidden form:
Private Sub Form_Open(Cancel As Integer)
vEmergencyClose = False
Dim y
Dim vRelink As Boolean
vRelink = False
' Tests a linked table for valid back-end.
On Error GoTo Err_Form_Open
Dim strTest As String, db As Database
Dim td As TableDef
Set db = CurrentDb
For Each td In db.TableDefs
If Len(td.Connect) > 0 Then ' Is a linked table.
On Error Resume Next ' Turn off error trap.
strTest = Dir(Mid(td.Connect, 11)) ' Check file name.
On Error GoTo Err_Form_Open ' Turn on error trap.
If Len(strTest) = 0 Then ' No matching file.
y = MsgBox("Couldn't find the back-end file " & _
Mid(td.Connect, 11) & ". Please choose new data file.", _
vbExclamation + vbOKCancel + vbDefaultButton1, _
"Can't find backend data file."

If y = vbOK Then
vRelink = True
If vCurrentPermission <> "Database Administrator" Or vCurrentGroup <> "All Groups" Then
y = MsgBox("Please tell your database administrator that your DATA FILE is incorrect.", vbOKOnly, "INCORRECT DATAFILE"

Application.Quit
Exit Sub
End If
DoCmd.OpenForm "frmNewDataFile" ' Open prompt form.
Exit For
End If
If y = vbCancel Then
MsgBox "The linked tables can't find their source. " & _
"Please log onto network and restart the application."
End If
End If
End If
Next ' Loop to next tabledef.
DoCmd.Close acForm, Me.Name
If vRelink = False Then DoCmd.OpenForm "Switchboard"
Exit_Form_Open:
Exit Sub
Err_Form_Open:
On Error Resume Next
MsgBox "Oops! " & Error.Description
Resume Exit_Form_Open
End Sub