Results 1 to 2 of 2
  1. #1
    SierraJuliet's Avatar
    SierraJuliet is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Dec 2017
    Location
    Earth
    Posts
    211

    DoCmd.SetFilter

    I am trying to make a form only allow user to view data if they meet all the criteria with exception to the first part (StaffNum)



    Code:
    CurrentDb.OpenRecordset strSQL DoCmd.SetFilter , "[AssignedStaff] Like '" & Staff & "' OR [AssignedDepartmentGroup] Like '" & DepartmentGroup & "' AND [AssignedManagerGroup] Like '" & ManagerGroup & "' AND [AssignedCaseGroup] Like '" & CaseGroup & "'" Me! [listSearch].RowSource = strSQL Me! [listSearch].Requery
    1. Staff Number

    Each staff member may have something specifically directed to them.

    2. The user works in the specific categories: Department Group > Manager Group > Case Group

    Each staff member will fall under a category: For each department group there are manager groups and for each manager group there are case groups.

  2. #2
    SierraJuliet's Avatar
    SierraJuliet is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Dec 2017
    Location
    Earth
    Posts
    211
    Disregard the code works as is. Just need to logout and log back in for changes to take effect.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 10-29-2017, 01:19 PM
  2. Setfilter,Like
    By civl_eng in forum Programming
    Replies: 2
    Last Post: 09-07-2017, 03:03 AM
  3. Replies: 2
    Last Post: 09-27-2016, 09:10 PM
  4. Replies: 10
    Last Post: 04-07-2014, 12:49 PM
  5. Setfilter works in Access but not Sharepoint
    By estroud in forum SharePoint
    Replies: 1
    Last Post: 05-28-2012, 12:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums