+ Reply to Thread
Results 1 to 5 of 5

Form with ComboBox Filter in Header

  1. #1
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Form with ComboBox Filter in Header

    I have a "multiple items" form that I created.
    There is a combo box in the Header - that I want to use to filter the Table with --I pointed the form to a Table (not a query) because I want to edit the info.
    I have the action set for "after update" to run this code:
    Please Login or Register  to view this content.
    the OrderMonth field in the Table is a calculated field =Month([OrderDate]) where OrderDate field is a field with the Date/Time entry format

    I would like to have the name of the month (January,February...) be the choice in the comboBox - then the Form would be filtered by that month

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,982

    Re: Form with ComboBox Filter in Header

    Have you already built the combo box and populated it or is this something that needs to completed? I am slightly confused by your request. If it is the former, then you will need to create a table with a PK of 1 through 12 and a second field with the names of the months beginning with January. Use that table as the record source for your combo box.

    Look at the three videos on the link below regarding combo boxes. This will show what you need to do to create and use combo boxes.

    http://www.datapigtechnologies.com/AccessMain.htm

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Form with ComboBox Filter in Header

    Great links - Got it working

  4. #4
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Form with ComboBox Filter in Header

    Now - I have it working where it filters by OrderMonth I need to add filtering by OrderMonth & OrderYear

    Please Login or Register  to view this content.
    Getting Type Mismatch error

  5. #5
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Form with ComboBox Filter in Header

    also - if there are no matching order it shows the list as blank

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro to filter data to search terms selected from ComboBox (Form Control)
    By JasonRay in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2013, 05:08 PM
  2. Calling a user form initialize sub when entering the form to populate combobox...
    By regupnorth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2012, 07:24 AM
  3. Form ComboBox to Filter date range by Month
    By BlankPage in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2012, 09:09 AM
  4. Transfer User form data to a worksheet w.r.t. combobox item on the form
    By nm766 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2011, 12:43 PM
  5. transferring combobox value from one user form to populate combobox on another
    By smartphreak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2010, 10:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1