473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

delete report fields if no data

Hi

I have a bibliographic report, author, title, abstract etc which always have
data, and another field, ISBN, which can be blank.

How can I format my report to delete the ISBN field and label, and move the
line up to a position underneath the new last field (given that the ISBN
field is deleted)

rgds and thanks
J
Mar 2 '06 #1
2 3151
Open the report in design view.
Right-click the ISBN text box, and choose Properties.
On the Format tab of the properties box, set Can Shrink to Yes.
Make sure the Can Shrink property of the (Detail?) section is also set to
Yes.

That allows the box to shrink, and the rest of the report will move up if
there is nothing else beside the text box. We still have to deal with the
label though.

Right-click the label, and choose Change To | Text box.
Set the Control Source of the text box to:
=IIf([ISBN] Is Null, Null, "ISBN:")
Set the Can Shrink property of this text box to Yes as well.

When the ISBN field is null, this one will be Null as well, and so it will
shrink. When ISBN is not null, this one will contain the text "ISBN:", which
looks just like the label.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"James" <j.*******@stir.ac.uk> wrote in message
news:5u************@nntp.stir.ac.uk...

I have a bibliographic report, author, title, abstract etc which always
have data, and another field, ISBN, which can be blank.

How can I format my report to delete the ISBN field and label, and move
the line up to a position underneath the new last field (given that the
ISBN field is deleted)

rgds and thanks
J

Mar 2 '06 #2
Thanks Allan

As usual your advice is top notch. Keep up the good work

rgds
J

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:44***********************@per-qv1-newsreader-01.iinet.net.au...
Open the report in design view.
Right-click the ISBN text box, and choose Properties.
On the Format tab of the properties box, set Can Shrink to Yes.
Make sure the Can Shrink property of the (Detail?) section is also set to
Yes.

That allows the box to shrink, and the rest of the report will move up if
there is nothing else beside the text box. We still have to deal with the
label though.

Right-click the label, and choose Change To | Text box.
Set the Control Source of the text box to:
=IIf([ISBN] Is Null, Null, "ISBN:")
Set the Can Shrink property of this text box to Yes as well.

When the ISBN field is null, this one will be Null as well, and so it will
shrink. When ISBN is not null, this one will contain the text "ISBN:",
which looks just like the label.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"James" <j.*******@stir.ac.uk> wrote in message
news:5u************@nntp.stir.ac.uk...

I have a bibliographic report, author, title, abstract etc which always
have data, and another field, ISBN, which can be blank.

How can I format my report to delete the ISBN field and label, and move
the line up to a position underneath the new last field (given that the
ISBN field is deleted)

rgds and thanks
J


Mar 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
0
by: CSDunn | last post by:
Hello, I have a format issue on an Access 2000 ADP report that I am going to attempt to explain from a 'ten thousand foot view' : I have an Access 2000 ADP report that has a SQL Server 2000...
3
by: Grim Reaper | last post by:
I know this is probably an easy question, but I could not find/figure it out. Basically, I am printing mailing labels with a "Sorting/Grouping" section that groups the label types together....
3
by: lorirobn | last post by:
Hello, I have a report which uses a subreport. When I run the report, I get "Enter Parameter Value" error message for "tblGuestRoom". I click ok and the report seems to work fine. I...
3
by: Diggler | last post by:
I was working on a report that is populated with three different tables in a strongly-typed dataset. The tables are populated from custom objects rather than directly from SQL Server. I loop...
6
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
6
by: JayDawg | last post by:
Excel has this cool little function where you can copy data, and then paste it transposed so that which runs across the rows now runs down a colum and visa versa. Is there a way in access to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.