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

    Filter Form

    Hello,

    Forum

    I am asked to filter my form to narrow down the search to make it easier to find the search item.

    I am thinking of having a cbo dropdown box to filter by Subsystem and location. I was also wondering if it is possible to add a search box in the form?

    I have afew more questions..

    How do I use Case is to filter users in frmLogin that login to different forms. For my case directing them to different database. Currently I only have ECD Inv/Store. The rest of the forms I have not created.

    Is it possible for me to filter reason based on chkbox in frmLog? As Stock in and Recon is for stock in. The rest are for withdrawing.



    RptLog I use the Yes/No field to group my data.
    I would like to use name such as Stockin and Withdraw instead of separating them based on checkbox.

    Please help.

    Thanks

    Haziq
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you can filter on anything...
    textbox:
    Code:
    sub txtBox_Afterupdate()
    if IsNull(txtBox) then
       me.filterOn = false
    else
       me.filter = "[field] like *" & me.txtBox & "*"
       me.filterOn = true
    endif
    end sub
    cboBox:
    Code:
    sub cboBox_Afterupdate()
    if IsNull(cboBox) then
       me.filterOn = false
    else
       me.filter = "[field] ='" & me.cboBox& "'"
       me.filterOn = true
    endif
    end sub

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

    Item Search How is it done

    hello runman256,

    I tried your code for cboBox. It works perfectly.

    I tried to search using txtbox but I am having error 3075.

    Is it possible for me to do cascading cbobox for search results as the filter I have is only for one field.

    Thanks and Merry Christmas

    Haziq
    Attached Files Attached Files

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

Similar Threads

  1. Replies: 9
    Last Post: 02-24-2015, 11:19 AM
  2. Filter By Form and Apply Filter Buttons
    By JustLearning in forum Forms
    Replies: 13
    Last Post: 02-18-2015, 01:01 PM
  3. Replies: 5
    Last Post: 02-07-2013, 12:21 PM
  4. Replies: 1
    Last Post: 08-16-2012, 01:51 PM
  5. Replies: 28
    Last Post: 03-08-2012, 06:47 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