Results 1 to 3 of 3
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316

    Query exceeds 1,024 character limit

    I am generating a query from within VBA and, on occasion, the request exceeds the Access 1,024 character limitation for a Query. I know how I can reduce the size of table names by using the AS clause (Tbl_Customer_Address AS CA). Is there a comparable way I can reduce the size of a data element in a WHERE Clause (Customer_Shipping_Address = "AAA" OR Customer_Shipping_Address = "BBB" OR ...) to something like (CSA = "AAA" OR CSA = "BBB" OR ...).

    Thanks, Eddie

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You mean shorter field names? Build a query that constructs fields with an alias. Then use that query as data source.
    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
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    Yes, you can refer to a Column Name (such as Customer_Shipping_Address) with an Alias. For example,

    "SELECT Customer_Shipping_Address AS CSA..."

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

Similar Threads

  1. Character limit in form field
    By tanveerksingh in forum Forms
    Replies: 3
    Last Post: 08-22-2012, 11:04 AM
  2. SendObject Message Character Limit
    By kevins in forum Access
    Replies: 9
    Last Post: 07-20-2012, 09:58 AM
  3. Replies: 16
    Last Post: 10-13-2011, 07:52 AM
  4. Text Box control and character limit?
    By Bigdoggit in forum Forms
    Replies: 2
    Last Post: 03-29-2011, 10:05 AM
  5. Replies: 4
    Last Post: 10-07-2010, 09:42 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