Results 1 to 3 of 3
  1. #1
    Euler271 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2017
    Posts
    63

    RT error 2176 "The setting for this property is too long."

    I'm using a search form that returns names of people who are attached to a selected project. I'm getting error 2176 when the IN statement I'm using as a filter for the form exceeds a certain number of characters. I think the number is 2048 but I'm not sure. I need to be able to return thousands of people, potentially, which would require a string length of of several thousand. The IN statement contains the primary keys for the people associated with the selected project.

    Any thoughts on how to get around this error? Thanks for the help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use a 'temp' table (table is permanent but records are temporary). Save the record IDs to temp table. Join that table to data table to restrict records.
    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
    Euler271 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2017
    Posts
    63
    That's a good idea. I'll try it. Thanks.

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

Similar Threads

  1. Replies: 8
    Last Post: 01-16-2025, 02:46 AM
  2. Replies: 18
    Last Post: 12-15-2016, 02:17 PM
  3. Replies: 7
    Last Post: 11-08-2013, 08:28 PM
  4. Replies: 13
    Last Post: 01-11-2012, 09:44 PM
  5. Replies: 3
    Last Post: 10-14-2011, 04:50 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