Results 1 to 2 of 2
  1. #1
    webisti is offline The Wisher
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    115

    multiiple filter on a split form

    hi I do have a split form with two filters on it
    first code is:

    Private Sub S_CHOOSE_PLANT_Click()
    If Not IsNull(Me![PLANT]) Then
    Me.Filter = "PLANT =" & Chr(34) & Me![PLANT] & Chr(34)
    Me.FilterOn = True
    End If
    End Sub
    and then the secodn code is :

    Private Sub filter_besoh_Click()
    test = Me.filter_besoh
    Select Case Me.filter_besoh
    Case 1
    Me.Filter = "Priority = 'Priority*'"
    Me.FilterOn = False
    Case 2


    Me.Filter = "Priority = 'Priority 1'"
    Me.FilterOn = True
    Case 3
    Me.Filter = "Priority = 'Priority 2'"
    Me.FilterOn = True
    Case 4
    Me.Filter = "Priority = 'Priority 3'"
    Me.FilterOn = True
    End Select
    End Subho can I make it possible that when i run the first filter and it workds then I do run the second filter and keep the filtered records done already..
    any ideas?

    thanks a lot

    webisti

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    You would have to concatenate the two criteria into one filter expression.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Filter or FindRecord in Split Form
    By P5C768 in forum Forms
    Replies: 4
    Last Post: 03-20-2012, 12:16 PM
  2. Replies: 28
    Last Post: 03-08-2012, 06:47 PM
  3. Replies: 1
    Last Post: 12-12-2011, 01:58 PM
  4. Referencing split form data / filter
    By stephenaa5 in forum Programming
    Replies: 2
    Last Post: 09-14-2010, 08:48 AM
  5. Replies: 1
    Last Post: 04-27-2010, 09:30 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