Results 1 to 4 of 4
  1. #1
    btappan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    43

    Too long of query, way to store statements?

    I have a query I'm trying to make in access expression builder that is very long. It is used to concatenate columns in a table to create product descriptions based on the field "product type". based on the product type, the concatenation expression changes. Because there are many product types, the expression is quite long and exceeds the character limit of the expression builder. Is there a way to store parts of the expression and call them by a name or number reference? Like: if product type is widget, use expression A, and expression a could be stored somewhere else? I don't know vba or anything.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    I usualy manage such tasks with VBA.

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    One can make a query using design view, using another query as its table/source. This method can be repeated over and over. It allows very complex queries to be segmented into a series of individual queries. The primary benefit of this approach is that one can run each/any individual query by itself for troubleshooting purposes.....

    Once it works - one only that calls or refers to the final query alone - - and all subsequent related sub queries run automatically...

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It is used to concatenate columns in a table to create product descriptions based on the field "product type". based on the product type, the concatenation expression changes. Because there are many product types, the expression is quite long and exceeds the character limit of the expression builder.
    It sure sounds to me like you do not have a normalized table structure.
    I'm just saying....

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

Similar Threads

  1. Replies: 6
    Last Post: 09-11-2013, 11:32 PM
  2. Query taking too long, suggestions?
    By theperson in forum Queries
    Replies: 11
    Last Post: 05-29-2013, 10:17 AM
  3. Replies: 11
    Last Post: 11-17-2010, 03:43 PM
  4. Update Query too long
    By ack9f in forum Queries
    Replies: 3
    Last Post: 04-26-2010, 12:11 PM
  5. ODBC and Long Query Time
    By pdouglas in forum Access
    Replies: 0
    Last Post: 07-09-2009, 10:21 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