Results 1 to 10 of 10
  1. #1
    DingDong is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Apr 2014
    Posts
    5

    Filter Form

    Hi there,

    I have a problem with my search(filter) form. I've created an Form with a subform.

    Form - Search/Filter subform by string (text)



    As now I have created an dropdown box with 2 options: "CheckON and CheckOFF".
    The thing I want is that the subform refreshes the people who are checked and unchecked when highlighted.
    If you download the attached databases you can see at tables "Deelnemers" that every individual has an checkbox row.

    I can't seem to figure out how to do this.. So please do help
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    I would not use form/subform arrangement. I would use a single form in Continuous view and arrange controls to appear as datasheet with the search textbox and buttons in form header/footer sections.

    The Check field is not in the form RecordSource. Can't apply filter to a field if it's not included in RecordSource. Instead of referencing the query object, just reference the table.

    CheckOn and CheckOff are string values, not Boolean. Why does the combobox use expression Naam(Voornaam)=Me.Dropdown instead of filtering on the Boolean field?

    strF = "Check = " & IIf(Me.Dropdown = "CheckOn", True, False)
    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.

  3. #3
    DingDong is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Apr 2014
    Posts
    5
    Thanks for your help but I've tried it but I can't seem to get it to work.
    See my attachment, please
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    What doesn't work?

    I tested the dropdown and it filters the subform.
    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.

  5. #5
    DingDong is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Apr 2014
    Posts
    5
    Quote Originally Posted by June7 View Post
    What doesn't work?

    I tested the dropdown and it filters the subform.
    That's odd it doesn't work for me X_x

    From the dropdown list I choose CheckON but it doesn't filter the people who are checked.

    Not on acces 2010 and not on access 2003

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    All I did was download your latest db and it works as is.
    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.

  7. #7
    DingDong is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Apr 2014
    Posts
    5
    Quote Originally Posted by June7 View Post
    All I did was download your latest db and it works as is.
    When I choose CheckON I get a box:

    "Enter Parameter Value
    true


    "

    Then I need to enter something, please I need this fixed. Because it doesn't work for me


    I want:
    When I choose CheckON that it filters all the people that are Checked (database, deelnemers)
    When I choose CheckOFF that it filters all the people that are NOT Checked (database, deelnemers)

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    I did it again. Downloaded your database, opened db, selected value in combobox, records are filtered.

    If you are performing a different sequence of actions to produce error, what are they?

    If I can't replicate error, there is nothing for me to fix. I don't have Access 2003 so don't know why this fails for you.
    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.

  9. #9
    DingDong is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Apr 2014
    Posts
    5
    Weird enough, I'm doing the same thing, same sequence. When I choose CheckON theres a box popping up saying "Enter parameter value".

    Tested on access 2003 and 2010(x64)

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Weirdness often means corruption and I would suggest deleting the combobox, run Compact & Repair, and create new one but since the combobox works for me, I am at a total loss for an explanation and solution.
    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. stuck
    By mnghost in forum Access
    Replies: 11
    Last Post: 09-23-2012, 11:32 AM
  2. stuck
    By F17RUK in forum Queries
    Replies: 1
    Last Post: 05-22-2012, 10:13 AM
  3. I am stuck!
    By asaloba in forum Database Design
    Replies: 9
    Last Post: 02-29-2012, 12:47 PM
  4. stuck on the best way to do this
    By token_remedie in forum Queries
    Replies: 1
    Last Post: 09-22-2011, 10:19 PM
  5. Help I am stuck
    By Darkglasses in forum Database Design
    Replies: 10
    Last Post: 03-04-2011, 09:10 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