If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Report Fields
I was wondering if there was a way to have a report
display a field only if it contains a certain value. I have a form that contains several check boxes that users select to select options they want. Is there a way to have a report list the names of the fields that are checked yes and not display the ones that are not checked? For Example: Form looks like this... Field A [] Field B[x] Field C [x] The report would then look like this..... Field B Field C Thanks, Josh |
#2
|
|||
|
|||
Report Fields
Yes, place an unbound text box on your report with something like the
following in the source... =IIf([FieldA],"Field A","") This will display nothing if [Field A] is not checked. It will display the literal "Field A" if checked. Rick B "Josh" wrote in message ... I was wondering if there was a way to have a report display a field only if it contains a certain value. I have a form that contains several check boxes that users select to select options they want. Is there a way to have a report list the names of the fields that are checked yes and not display the ones that are not checked? For Example: Form looks like this... Field A [] Field B[x] Field C [x] The report would then look like this..... Field B Field C Thanks, Josh |
#3
|
|||
|
|||
Report Fields
You can hide the fields easily enough by using the code
Josh provided. Don't expect the fields to be shifted left when they are hidden though. Can Shrink/Can Grow only eliminates vertical space. -----Original Message----- I was wondering if there was a way to have a report display a field only if it contains a certain value. I have a form that contains several check boxes that users select to select options they want. Is there a way to have a report list the names of the fields that are checked yes and not display the ones that are not checked? For Example: Form looks like this... Field A [] Field B[x] Field C [x] The report would then look like this..... Field B Field C Thanks, Josh . |
#4
|
|||
|
|||
Report Fields
Oops - I did not notice that you would want them shifted. You might do
something like... =IIf([FieldA],"Field A ","") & IIf([FieldB],"Field B ","") & IIf([FieldC],"Field C ","") This would give results like... Field A Field B Field C or Field B Field C or Field A Field C Rick B "Pat Hartman" wrote in message ... You can hide the fields easily enough by using the code Josh provided. Don't expect the fields to be shifted left when they are hidden though. Can Shrink/Can Grow only eliminates vertical space. -----Original Message----- I was wondering if there was a way to have a report display a field only if it contains a certain value. I have a form that contains several check boxes that users select to select options they want. Is there a way to have a report list the names of the fields that are checked yes and not display the ones that are not checked? For Example: Form looks like this... Field A [] Field B[x] Field C [x] The report would then look like this..... Field B Field C Thanks, Josh . |
#5
|
|||
|
|||
Report Fields
I have some large text fields in my report that are only
partially filled. I have CanShrink and CanGrow set to yes but my report still consists mainly of blank space - vertical space is not being eliminated. What am I doing wrong? -----Original Message----- You can hide the fields easily enough by using the code Josh provided. Don't expect the fields to be shifted left when they are hidden though. Can Shrink/Can Grow only eliminates vertical space. -----Original Message----- I was wondering if there was a way to have a report display a field only if it contains a certain value. I have a form that contains several check boxes that users select to select options they want. Is there a way to have a report list the names of the fields that are checked yes and not display the ones that are not checked? For Example: Form looks like this... Field A [] Field B[x] Field C [x] The report would then look like this..... Field B Field C Thanks, Josh . . |
#6
|
|||
|
|||
Report Fields
If you have set the CanShrink property of the Section, too, then I'd look
for Controls alongside the Controls that you want to shrink... shrinking has to work for the whole width of the report to take effect. Larry Linson Microsoft Access MVP "miaplacidus" wrote in message ... I have some large text fields in my report that are only partially filled. I have CanShrink and CanGrow set to yes but my report still consists mainly of blank space - vertical space is not being eliminated. What am I doing wrong? -----Original Message----- You can hide the fields easily enough by using the code Josh provided. Don't expect the fields to be shifted left when they are hidden though. Can Shrink/Can Grow only eliminates vertical space. -----Original Message----- I was wondering if there was a way to have a report display a field only if it contains a certain value. I have a form that contains several check boxes that users select to select options they want. Is there a way to have a report list the names of the fields that are checked yes and not display the ones that are not checked? For Example: Form looks like this... Field A [] Field B[x] Field C [x] The report would then look like this..... Field B Field C Thanks, Josh . . |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Label | SRIT | General Discussion | 2 | June 22nd, 2004 09:42 PM |
Lookup fields on label report | Howard | Setting Up & Running Reports | 1 | June 3rd, 2004 02:43 AM |
several report fields from one table field | Steve | Running & Setting Up Queries | 2 | May 25th, 2004 11:49 AM |
Help Printing a Report with Blank Fields | Jen | New Users | 6 | May 1st, 2004 02:32 PM |