Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    FieldName = ValueToFilterOn
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Hi,

    I still can't seem to get this to work. I don't know enough about code. I see the logic in the code but can't nail down the syntax. Currently I have:

    Private Sub Check2107_AfterUpdate()

    If Me.Check2107 = True Then
    Me.FilterOn = False
    Else
    Me.Active = "yes"
    Me.FilterOn = True
    End If

    The filter is based on a field called "Active" from which I enter "yes" or "no" through a combobox. By checking on the Checkbox (Check2107) I would like to have the form return only those students who are active (yes). By unchecking the box, The form would return all students.

    Sorry for the lack of understanding I have with Access code.

    Thanks and take care,

    Daryl

  3. #18
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Compile Error: Argument not optional
    By tariq1 in forum Programming
    Replies: 4
    Last Post: 08-11-2012, 01:06 PM
  2. Multiple Filtering Questions
    By Datech in forum Forms
    Replies: 1
    Last Post: 04-23-2012, 03:01 PM
  3. multiple optional criteria
    By TheShabz in forum Programming
    Replies: 7
    Last Post: 07-05-2011, 05:13 PM
  4. Compile Error: Argument Not Optional
    By bg18461 in forum Access
    Replies: 1
    Last Post: 12-01-2010, 08:47 AM
  5. Skipping optional arguments
    By canfish in forum Programming
    Replies: 3
    Last Post: 08-19-2010, 01:35 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