Solved

Memo Field being truncated by Group By

Posted on 2006-06-13
6
240 Views
Last Modified: 2006-11-18
I am sure that there is a better way to write this query, but I don't know what it is.

SELECT  qry_SearchUnion.Problem, Count(qry_SearchUnion.RecapID) AS CountOfRecapID, qry_SearchUnion.Job_Name, qry_SearchUnion.Date, qry_SearchUnion.Error_Code, qry_SearchUnion.Solution, qry_SearchUnion.Primary, qry_SearchUnion.Secondary, qry_SearchUnion.External_People, qry_SearchUnion.[Type of System], qry_SearchUnion.Peregrin_Ticket, qry_SearchUnion.ID, qry_SearchUnion.[Open Time], qry_SearchUnion.[Update Time], qry_SearchUnion.[Alert Status], qry_SearchUnion.Severity, qry_SearchUnion.[CI Severity], qry_SearchUnion.Category, qry_SearchUnion.Title
FROM qry_SearchUnion
GROUP BY qry_SearchUnion.Problem, qry_SearchUnion.Job_Name, qry_SearchUnion.Date, qry_SearchUnion.Error_Code, qry_SearchUnion.Solution, qry_SearchUnion.Primary, qry_SearchUnion.Secondary, qry_SearchUnion.External_People, qry_SearchUnion.[Type of System], qry_SearchUnion.Peregrin_Ticket, qry_SearchUnion.ID, qry_SearchUnion.[Open Time], qry_SearchUnion.[Update Time], qry_SearchUnion.[Alert Status], qry_SearchUnion.Severity, qry_SearchUnion.[CI Severity], qry_SearchUnion.Category, qry_SearchUnion.Title
HAVING (((Count(qry_SearchUnion.RecapID))=8))
ORDER BY Count(qry_SearchUnion.RecapID) DESC;

The memo fields qry_SearchUnion.Problem and qry_SearchUnion.Solution get truncated to 255 characters because of the group by. To test this I copied the query, removed the aggregates and the memos worked on a form. I need to have the Count(qry_SearchUnion.RecapID) AS CountOfRecapID in there, but the other group bys are there just so it wont throw the aggregates error.

I saw this touched on : http://www.experts-exchange.com/Databases/MS_Access/Q_20948020.html?query=query+truncates+memo+field&clearTAFilter=true

but I couldn't get it to work for me, any advice?

I am using Access 2003.
0
Comment
Question by:psonix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 44

Accepted Solution

by:
Leigh Purvis earned 500 total points
ID: 16895995
0
 

Author Comment

by:psonix
ID: 16897168
tried both of those and they don't work.
0
 

Author Comment

by:psonix
ID: 16897742
I tried the second link that creates the temp table in the subquery, and that will get the memo fields through, but I can't find a way to get the count function involved
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 44

Expert Comment

by:Leigh Purvis
ID: 16898748
have you tried expanding your OrderBy clause to?
ORDER BY Count(qry_SearchUnion.RecapID) DESC, qry_SearchUnion.Problem, qry_SearchUnion.Solution;
0
 

Author Comment

by:psonix
ID: 16904271
I ended up using the second link and having to use it as a base to create a work around off of.
0
 
LVL 44

Expert Comment

by:Leigh Purvis
ID: 16904471
OK glad you're winning.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question