Results 1 to 6 of 6
  1. #1
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88

    3 Combo-box 1 sub form filtering

    hello i have 3 combo-box's which have 3 master fields linked to a sub form's child fields, which are filtering 3 of the combo-box's value's, is it possible to disable the filter if the combo-box is equal to blank ?



    even tho all 3 combo-box's have been assigned to filter the sub-form, i want to be able to filter with one combo-box, by disabling other 2 combo-box's only when they are blank and have no value in them


    thank you

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    You would need to write a If Statement for this. Example: This should give you an idea.
    If (Me.MyCombo) = "Something" Or IsNull (Me.SomeOtherCombo) Then
    Me.SomeOtherCombo.Enabled = False
    Else
    Me.SomeOtherCombo.Enabled = True
    End If

    HTH

  3. #3
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88
    hm, great idea, hmmm how can i apply this to the if combobox = isnull then disable filter sort of a formula lol

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Hmm, this may work for you. If not, we can try something else. Let us know.
    Me.FilterOn = False
    Me.Filter = vbNullString
    Me.OrderByOn = False
    Me.OrderBy = vbNullString
    HTH

  5. #5
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88
    im extreamly sorry for the unintelligent question but where am i suppose to write that formula cuz it seems like a VBA code and i never have written one in access or know where am i suppose to write one

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Have you tried any code yet? If so, where? Perhaps upload a sample db for analysis! Someone would be willing to help.

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

Similar Threads

  1. Form Combo Box Filtering
    By aceoftrades in forum Forms
    Replies: 10
    Last Post: 01-03-2014, 08:42 PM
  2. Replies: 4
    Last Post: 06-12-2012, 11:49 AM
  3. Replies: 5
    Last Post: 03-12-2012, 02:58 AM
  4. list form filtering from 1 combo box
    By cooper in forum Forms
    Replies: 5
    Last Post: 08-18-2011, 05:32 PM
  5. Replies: 0
    Last Post: 08-17-2008, 12:19 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