Solved

"Group By" & "Can Grow" - How to resolve conflict?

Posted on 2003-10-29
10
288 Views
Last Modified: 2006-11-17
Hi all.

I'm trying to generate a report with my database and I would like to have the capabilities of the "Group by" within my query to merge together similar pieces of information.  Note that I have memos in my query and hence I can not use the "unique values" property to weed out redundance.  

Within my report, I have fields that I want to specify "can grow" and "can shrink" to accomodate for varying memo fields' sizes.  However, "can grow" and "can shrink" do not work when "group by" is activated in a query (AFAIK).  

Any easy solutions out there?
0
Comment
Question by:ExMDI
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 8

Expert Comment

by:HaydnH
ID: 9642552
"Within my report, I have fields that I want to specify "can grow" and "can shrink" to accomodate for varying memo fields' sizes.  However, "can grow" and "can shrink" do not work when "group by" is activated in a query (AFAIK)."

Really? I'm going to have to try this...

Haydn.
0
 
LVL 32

Expert Comment

by:jadedata
ID: 9642577
Hey jswan!

 The behaviour you describe may not be doing as you have stated.  There is no connection between the two objects that would cause this.
 What you should do however is set the size of the report control to it's minimum height requirement and simply set CanGrow to true.

regards
Jack
0
 
LVL 77

Expert Comment

by:peter57r
ID: 9642681
'the capabilities of the "Group by" within my query to merge together similar pieces of information.'

You aren't imagining that records will somehow be merged together (data from tha same fields in more than one record 'joined'  together) are you?

If you have a memo field in your Groups query you would usually use 'First' or 'Last' for the Total row.

Pete
0
 

Author Comment

by:ExMDI
ID: 9642739
peter57r: No, I know the records won't get merged together in a record or table or whatever.  What I meant was in terms of displaying information in a report; such that common information would only show once.

jadedata:  I may be concluding the wrong thing from what I'm seeing within my databse.  However, in my report, when I disable the "group by" within my query (by turning off the totals row) my "can grow" fields in my report work fine.  When I enable the totals row, the field in my report ceases to grow to the appropriate length.
0
 
LVL 8

Expert Comment

by:HaydnH
ID: 9642761
In that case - remove the "group by" statement in your query and add grouping (sorting & grouping button) on the report itself.

Haydn.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:ExMDI
ID: 9643261
HaydnH:  I've tried that, but redundant data gets listed.  I've tried to 'hide duplicate data' but the space allocated for the duplicate data remains (ie there are gaps in between data)
0
 
LVL 32

Expert Comment

by:jadedata
ID: 9643298
Also include a SELECT DISTINCTROW to hide the duplicates,... but with this you risk making the underlying recordset NON-editable.
0
 

Author Comment

by:ExMDI
ID: 9649719
I have solved the problem through the usage of a sub-report which will allow me to link to a separate query which bypasses the "group by" for the memo field.
0
 
LVL 39

Expert Comment

by:stevbe
ID: 9993283
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ with points refunded

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

stevbe
EE Cleanup Volunteer
0
 

Accepted Solution

by:
SpazMODic earned 0 total points
ID: 10015153
PAQed, with points refunded (125)

SpazMODic
EE Moderator
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now