Results 1 to 3 of 3
  1. #1
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370

    Question Filter in VBA

    Hello all,

    I have what should be a simple fix.

    I have two fields [InReview] and [TestReviewed].

    I'm trying to create a filter in the Onclick event of a button like so:


    Code:
    Me.Filter = "InReview Is Not Null" & "TestReviewed Is Not Null"
    Me.FilterOn = true
    This is not working for some reason. What is the correct way to concatenate a filter in VBA?

    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Try (untested)
    Me.Filter = "InReview Is Not Null AND TestReviewed Is Not Null"
    Me.FilterOn = true

  3. #3
    cbende2's Avatar
    cbende2 is offline Competent Performer
    Windows 7 32bit Access 2013
    Join Date
    Jun 2014
    Location
    Louisiana
    Posts
    370
    Yep, that worked, Thanks Orange.

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

Similar Threads

  1. Replies: 9
    Last Post: 02-24-2015, 11:19 AM
  2. Filter By Form and Apply Filter Buttons
    By JustLearning in forum Forms
    Replies: 13
    Last Post: 02-18-2015, 01:01 PM
  3. Replies: 1
    Last Post: 08-16-2012, 01:51 PM
  4. Replies: 28
    Last Post: 03-08-2012, 06:47 PM
  5. How to filter dates using an apply filter code.
    By Jgreenfield in forum Reports
    Replies: 4
    Last Post: 11-15-2011, 01:38 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