Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2003-10-29
10
Medium Priority
?
354 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
[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
  • 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

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
 

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
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.
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…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

719 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