Results 1 to 4 of 4
  1. #1
    dlp111 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2

    need help using form to select categories for report

    Hi,

    It's been many years since I've done any access work. I'm trying to create a contacts database to print out labels. I want to use a form to select a specific category or multiple categories to print labels for. I've followed and tried adapting a similar database and code with no luck. Been fighting with it for a few days... I'm trying to use a multi-select list box on a form for the category selection. I need help getting the selections into the report or a query. I've attached the DB.

    TIA,
    Dan

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    If you want to be able to select multiple items from listbox as filter criteria, need VBA code. Check this tutorial http://allenbrowne.com/ser-50.html
    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
    dlp111 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    2

    Problem Solved, thanks for your help.

    I am getting an error after adapting this code. Not sure how to deal with it.

    Error 3831 - The Multi-valued field '[Category]' cannot be used in a WHERE or HAVING clause.

    Problem Solved, it seems to be working now after a google search on the error which brought me to this.

    http://www.utteraccess.com/forum/VBA...-t1944811.html

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Multi-value fields, ugh! I REFUSE to use them.
    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. Replies: 1
    Last Post: 08-10-2011, 01:48 AM
  2. Replies: 3
    Last Post: 05-05-2011, 09:33 AM
  3. Select line from a form for a report
    By drf3794 in forum Access
    Replies: 3
    Last Post: 03-17-2011, 11:01 AM
  4. Can't Right Click Categories
    By netchie in forum Access
    Replies: 2
    Last Post: 10-26-2010, 10:48 AM
  5. Replies: 3
    Last Post: 08-29-2010, 06:34 AM

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