Results 1 to 2 of 2
  1. #1
    datachick is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    5

    Access Error - String returned by builder was too long - the results will be truncated.

    Please look at this syntax. I don't know why the query is truncating.Attachment 19838

    LINE_ID:IIF((Mid([TBL_A]![PD_ID], 4, 1) = “Q”) OR (Mid([TBL_A]![PD_ID], 4, 1) = “Q” AND ACPT_DTM < #03-01-2015#),”ORH”,
    IIF((Mid([TBL_A]![PD_ID], 4, 1) = “A”) OR
    (Mid([TBL_A]![PD_ID], 4, 1) = “A” AND ACPT_DTM < #03-01-2015#),“ORP”,
    IIF((Mid([TBL_A]![PD_ID], 4, 1) = “C” AND [TBL_B]![CS_ID] = “DC20016”) OR
    (Mid([TBL_A]![PD_ID], 4, 1) = “C” AND [TBL_A]![ACPT_DTM] < #03-01-2015#) OR (Mid([TBL_A]![PD_ID], 4, 1) = “F” AND [TBL_B]![CS_ID] IN (“DAL20016”,”DD20016”,”DF20016”,”DJ20016”)) OR (Mid([TBL_A]![PD_ID], 4, 1) = “F” AND [TBL_A]![ACPT_DTM] < #03-01-2015#),”ORC”,
    IIF((Mid([TBL_A]![PD_ID], 4, 1) = “C” AND [TBL_B]![CS_ID] IN (“HA20036”,”H220036”)) OR ((Mid([TBL_A]![PD_ID], 4, 1) = “F” AND [TBL_B]![CS_ID] = “HB20036”),”ORA”,IIF((Mid([TBL_A]![PD_ID], 4, 1) = “P” AND [TBL_B]![CS_ID] = “LM20024”) OR (Mid([TBL_A]![PD_ID], 4, 1) = “X” AND [TBL_B]![CS_ID] = “OB20026”), “ORN”, “Unknown”)))))

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,969
    Must have hit some limit, maybe: Number of characters in a cell in the query design grid - 1024.

    Review:

    https://support.office.com/en-US/Art...rs=en-US&ad=US
    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: 7
    Last Post: 08-14-2013, 03:57 PM
  2. Criteria string too long
    By bomich in forum SQL Server
    Replies: 2
    Last Post: 12-06-2012, 02:42 AM
  3. Replies: 10
    Last Post: 08-01-2012, 11:32 AM
  4. Returned No Results Message Box
    By Swilliams987 in forum Queries
    Replies: 2
    Last Post: 02-04-2011, 12:07 PM
  5. Replies: 4
    Last Post: 07-28-2010, 11:25 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