UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> hide field(s) on report    
 
   
Beejay
post Dec 3 2004, 06:58 AM
Post #1

UtterAccess Enthusiast
Posts: 97
From: The Netherlands



From some reports I have created it would be useful if I could hide some fields on the moment I want to print those reports. Off course I can create copies of the same reports without these specific fields, but that is not really what I'm looking for, because then I will have a lot of reports in my database.
Go to the top of the page
 
+
Jerry Dennison
post Dec 3 2004, 07:14 AM
Post #2

Head Wizard
Posts: 14,857
From: South Carolina, USA



If you have a large number of fields that are empty or have information that is not relevant, then you probably have a problem with your table structure. Does all of your tables meet at least the Third Normal Form?
Go to the top of the page
 
+
LuizFLC
post Dec 3 2004, 08:10 AM
Post #3

UtterAccess Member
Posts: 28



on the event of format the report

if isnull(me.field) then
me.field.visible=false
end if
Go to the top of the page
 
+
Beejay
post Dec 8 2004, 08:03 AM
Post #4

UtterAccess Enthusiast
Posts: 97
From: The Netherlands



The probem is not that I have fields that are empty. It is just that sometimes I want some fields not to be shown because certain fields contain confidential information. For example I have a report with all kind of information about insurances. I want to be able to print reports with and without the field "Annual premium". Depending on to whom I want to send the report. Off course I can make two reports but perhaps there is a possibility to use the one report, but before generating it, to choose that you want to hide certain feilds.

I hope this is all clear now.
Go to the top of the page
 
+
LuizFLC
post Dec 8 2004, 02:12 PM
Post #5

UtterAccess Member
Posts: 28



You have to inform a condition,otherwise how you could create a code

Regards
Go to the top of the page
 
+
Jerry Dennison
post Dec 8 2004, 05:02 PM
Post #6

Head Wizard
Posts: 14,857
From: South Carolina, USA



I beg to differ. I have yet to see any entity with 75 attributes. I strongly suspect that you have repeating groups and that your table violates the Normal Forms.
Go to the top of the page
 
+
Beejay
post Dec 9 2004, 07:31 AM
Post #7

UtterAccess Enthusiast
Posts: 97
From: The Netherlands



Dear Jerry,


I think we are not talking about the same things here. Suppose I have created a report that showes two fields: a field called "Monthly wage" and a field called "Bonus".

The case is that to some people I want to send a report with both fields on it and it to some people I want to send a report with only the field "Monthly wage" on it, just because the field "Bonus" is confidential.

Off course I can make two reports. One with both fields on it and one with only the field "Monthly wage" on it.

However that is not my question. Upon printing or e-mailing my report I would like to be able to pick which fields I want to have on it. On the spot so to say. Is that possible?

(IMG:http://www.utteraccess.com/forum/style_emoticons/default/compute.gif)
Go to the top of the page
 
+
Jerry Dennison
post Dec 10 2004, 09:37 AM
Post #8

Head Wizard
Posts: 14,857
From: South Carolina, USA



While it is possible to do what you're asking programmatically, it is not really advisable to try and do so. It is more trouble that it's worth. Unless there is some overwhelming reason to do otherwise, I would make two reports.

What exactly are you trying to do?
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 10:10 PM