Solved

Can Shrink using columns

Posted on 2011-09-27
9
332 Views
Last Modified: 2012-05-12
I'm trying to suppress blank fields in the detail of a report that has two columns of data.  See attached file for further explanation.  
EEReportProblem.doc
0
Comment
Question by:KarenPRuskin
  • 4
  • 3
  • 2
9 Comments
 
LVL 84
ID: 36713636
Are those all bound textboxes? In other words, is SS11 a bound textbox, and SS12 a bound textbox, and so on? If so, then I don't see how you'll be able to do this, but then we'd need to know more about your table design. Can you show us the tables you're using as a base for this report?
0
 

Author Comment

by:KarenPRuskin
ID: 36713668
In the query that the report uses, I've got 34fields based on whether the underlying table field is Yes or No.  eg: SS11: IIf([SITE SS11]=Yes,"SS 1.1     SPRINKLER","") where SITE SS11 is the table field.  
0
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 36713676
Then it would seem that you have an improper design, but that is hard to say without seeing your tables. Could you upload a copy of your database? We don't really need to see any data, just the table structure.
0
 
LVL 26

Accepted Solution

by:
Nick67 earned 250 total points
ID: 36713721
What you want to do there is hard, given what I suspect your table structure is.
There are many, many fields, and one detail section.
CanShrink works on the section in general, and on each control.
What it doesn't do is move any controls whatsoever.
CanGrow moves stuff, forcing it down the page.
CanShrink undoes CanGrow, but won't dynamically re-arrange stuff

For that you must either code, or change your data structure.
In changing your data structure, you'd have an 'InspectionID' and an ItemPresentID
You'd then have one record for each item present in an inspection, where now you have one inspection record and many fields
You wouldn't have the blanks entered, and wouldn't need to suppress them.

Here's a sample to demonstrate the difference
Different-Structures.mdb
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 26

Expert Comment

by:Nick67
ID: 36713734
@LSMConsulting
Lots of folks with denormalized data today!
http://www.experts-exchange.com/Microsoft/Development/Q_27327999.html
Same kind of deal.
0
 

Author Closing Comment

by:KarenPRuskin
ID: 36713784
This database was presented to me to modify the existing reports.  I agree with both of you, bad bad design and may spend some time redesigning the table layout, as suggested.   It's always more than a simple 'report modification' ! !  Anyway, keeps me in a job.  Thanks for your fast response.  BTW, I'm in New Zealand.  Go The All Blacks.
0
 
LVL 26

Expert Comment

by:Nick67
ID: 36713805
Watched the Canucks tie the Japanese last night.
They'll get killed by the All Blacks, of course, but Kleeburger's been fun to watch.
That beard!
Hopefully they finish third in the pool and can have another go around in 4 years.
Incidentally, the local boys (Grande Prairie Alberta Pop. 52,000) won the Edmonton Rugby Union E3 title over the Edmonton (Pop. 1 Miilion) squad on the weekend.
Next weekend they play the Calgary (also Pop. 1 million) squad for the provincial championship.
Good stuff.
Go Canada!
0
 

Author Comment

by:KarenPRuskin
ID: 36713872
Wow, what a small world.  I'm originally from Edmonton so know the places you mention.  My husband (a New Zealander) and I now run a guest house in Whangarei, New Zealand and both the Canadian and Japanese teams managers/coaches stayed with us during their games here (Keiran Crowley, John Kirwan, etc).  Nothing like name dropping!  Good to sing Oh Canada once again with a fanatic crowd and amazing that they got a team together - doesn't resemble ice hockey in the slightest!  Personally, I think rugby is absolutely rugged, no padding anywhere.   Nice to meet a fellow fan in such an unlikely space as EE.  Cheers Nick, Regards Karen.  
0
 
LVL 26

Expert Comment

by:Nick67
ID: 36717803
It's a small world indeed.
Glad to have helped
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

759 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

18 Experts available now in Live!

Get 1:1 Help Now