Results 1 to 4 of 4
  1. #1
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171

    Form not filtering on multiple listboxes

    Hi,
    I am a basic Access user and I am trying to build a database for Senior Management! I am little out of my league and could use some help.
    I have 3 things that are all tied together.
    I have 2 Listboxes in my form header. I was able to get the first listbox to work correctly. It allows me to make multiple selections and brings up a report. When I copy the code to create the second listbox the first one stops working and the second once is not selecting multiple items. In the end I will have a ListBox for the following fields - Manager, COD, Staff, Fiscal Year, Quarter, Category and Problem that will be mulitselect boxes. Once I can get two to work I can replicate the other listboxes.

    I think this has to do with clearing the previous values but I am not sure how to do that.

    The second problem is that I want the data selected in the listboxes to be viewable on the datasheet. Right now the Preview button takes you to a report. I will create a button for the report but I can 't figure out how to display the records. I have tried taking out the report language and playing around with several form views but can't figure out what I am doing wrong.

    I have attached my database so you can view the code and form.



    Any help would be much appreciated.
    PinkLady50
    Attached Files Attached Files

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The code for the first got disassociated with the button. I'd guess you renamed the button. Code already created will not follow that.

    The Multi Select property for the second is set to None.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171
    Paul
    Thanks for your quick response. The changes you suggested worked great!! How to I get my filters to display on a datasheet and not a report. I took the report code out but that didn't work. The table I want to reference is Problem_record.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm not clear on what you're after. If you had a subform you could set its filter, or recordsource.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Multiple Listboxes on form with subform
    By cbrsix in forum Programming
    Replies: 12
    Last Post: 08-01-2013, 03:35 PM
  2. Multiple Listboxes in Search Form
    By cbrsix in forum Programming
    Replies: 6
    Last Post: 05-03-2013, 12:11 PM
  3. Combining data from multiple listboxes
    By dshillington in forum Access
    Replies: 1
    Last Post: 10-04-2012, 11:53 AM
  4. Replies: 13
    Last Post: 11-20-2010, 06:45 AM
  5. Multiple Listboxes
    By Butterflies88 in forum Forms
    Replies: 1
    Last Post: 02-11-2009, 10:16 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