Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2003-10-29
10
Medium Priority
?
361 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

927 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