Results 1 to 2 of 2
  1. #1
    Bkper087 is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    May 2014

    Filtering form data with check boxes

    Building a budget database and have run into an issue. I have a column in the main table that is built as a foreign key field. This describes the entry as “Budgeted” (1), “Actual” (2), or “Forecasted” (3). On the main entry form I have three check boxes labeled “Budgeted”, “Actual” and “Forecasted.” The goal here is when the check box is checked, the subsequent entries shown in the bottom half of the split form will filter to only include that category. The catch is I want to be able to check more than one. That’s where I can’t get it to work.

    It’s been a little while since I’ve used access to any great length. Can someone help re-train my brain?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    The Great Land
    Dim strC As String
    With Me
        If .Budgeted Then strC = "1,"
        If .Actual Then strC = strC & "2,"
        If .Forecasted Then strC = strC & "3,"
        .Filter = "fieldname IN(" & strC & ")"
        .FilterOn = True
    End With
    How to attach file: 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. Check all check boxes on continuous form
    By NISMOJim in forum Forms
    Replies: 7
    Last Post: 06-14-2016, 02:14 AM
  2. Filtering data with date and check boxes
    By raffyT in forum Access
    Replies: 9
    Last Post: 08-26-2014, 11:46 AM
  3. Replies: 18
    Last Post: 06-20-2014, 12:13 PM
  4. Check boxes to add data?
    By PaintTheMoonRed in forum Access
    Replies: 1
    Last Post: 04-18-2014, 09:14 AM
  5. Replies: 5
    Last Post: 07-26-2012, 02: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