Solved

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

Posted on 2003-10-29
10
310 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

773 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