Hello all
My code used to work, but now its not working any more. What I am
trying to do is find the current user when a forms open. This is the
code that used to work:
If faq_IsUserInGroup("Admins", CurrentUser) Then
Me.RecordSource = "SELECT * FROM Employees"
DoCmd.FindRecord (CurrentUser)
<----------------------------------------------------
Me.Label50.Visible = True
Me.ViewReports.Visible = True
Me.AddDeleteExpenseTypes.Visible = True
Me.Label48.Visible = True
Me.Line69.Visible = True
Me.Label52.Visible = True
Me.Line72.Visible = True
Else
Me.Label50.Visible = False
Me.ViewReports.Visible = False
Me.AddDeleteExpenseTypes.Visible = False
Me.NavigationButtons = False
Me.Label48.Visible = False
Me.Line69.Visible = False
Me.Label52.Visible = False
Me.Line72.Visible = False
Me.manageu.Visible = False
End If
Basically is a user is under the Admins group he can see all the
records/users...otherwise the rest of the user groups can only see his
records.
DoCmd.FindRecord (CurrentUser) suppose to find the currentuser, so the
form will open showing his information, but its NOT working
Any ideas???