Results 1 to 6 of 6
  1. #1
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124

    How to filter cbobox based on checkbox

    Hello,

    Forum

    I need help w/ filtering my cbobox, [Forms]![frmLog]![cboReason] based on [Forms]![frmLog]![Withdraw]

    I do not know what will be the best practice.

    To use Iif, If or Select Case?



    Please help and Merry Christmas

    Haziq
    Attached Files Attached Files

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,535
    Should be achievable by changing the criteria used in the SQL statement and for the combo box. For more information on this search for cascading combo boxes.
    However, the second column of the combo box appears to have three possible values (Out, In and Nil) but the check box can only have one of two values(True or False)
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124

    Filter cbobox in Form

    Hello Bob,

    I tried using Yes/No as identifiers (TakeOut) for my Reason And set it as my criteria : Iif([Forms]![frmLog]![Withdraw], TakeOut = True, TakeOut = False).

    I dont think my expression is correct. That is the reason why I am getting an error.

    Please help

    Thanks

    Haziq
    Attached Files Attached Files

  4. #4
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124

    Form Filter

    Dear Bob,

    I am sorry to disturb you but I cannot seem to solve my problem.

    I was thinking of using VBA after update in Withdraw.

    I do not know which filter to apply.

    Please help me

    Haziq
    Attached Files Attached Files

  5. #5
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,535
    Try the attached file
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  6. #6
    MdHaziq is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    Singapore
    Posts
    124
    Thanks Bob!

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

Similar Threads

  1. Replies: 4
    Last Post: 03-16-2017, 03:29 PM
  2. Replies: 6
    Last Post: 09-17-2014, 05:12 PM
  3. Replies: 1
    Last Post: 05-06-2014, 09:14 PM
  4. Checkbox Filter?
    By 82280zx in forum Forms
    Replies: 7
    Last Post: 03-14-2014, 10:35 AM
  5. Replies: 3
    Last Post: 10-31-2011, 04:54 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