A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Report Fields



 
 
Thread Tools Display Modes
  #1  
Old July 8th, 2004, 04:32 PM
Josh
external usenet poster
 
Posts: n/a
Default 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  
Old July 8th, 2004, 04:41 PM
Rick B
external usenet poster
 
Posts: n/a
Default 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  
Old July 8th, 2004, 05:34 PM
Pat Hartman
external usenet poster
 
Posts: n/a
Default 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  
Old July 8th, 2004, 05:41 PM
Rick B
external usenet poster
 
Posts: n/a
Default 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  
Old July 9th, 2004, 02:35 PM
miaplacidus
external usenet poster
 
Posts: n/a
Default 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  
Old July 12th, 2004, 04:28 AM
Larry Linson
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 06:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.