Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: How to hide a field
Author
Message
Central
Groupie
Joined: 16 Feb 2011
Online Status: Offline
Posts: 56
Topic: How to hide a field
Posted: 16 Feb 2011 at 4:53am
Hi,
I have 2 addresses (created in a formula) e.g. @address1 & @address2.
Depending on a field's value depends on what address is displayed.
Can the following be done and how is it done.
1. Can a formula be in a formula e.g. if field = "New York" then @address1 else @address2
2. How do you hide a field e.g. if @address1 exists then don't display @address2
Thanks in advance.
I am new to Crystal Reports.
The version is 10.
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 16 Feb 2011 at 6:29am
what are your @address1 and @ address2 formulas?
IP Logged
Central
Groupie
Joined: 16 Feb 2011
Online Status: Offline
Posts: 56
Posted: 16 Feb 2011 at 9:38am
If I have two field with different addresses and depending on what value is in another field depends what address I display.
Can I hide a field on top of another field.
e.g.
If value is null then display address1 field, if not null then display address2 field.
I hope this explains my problem better.
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 16 Feb 2011 at 9:42am
yes you can do this. I was trying to see your formula to make it for you but the basic is to create a new formula field for display as:
if {table.field} = 'New York" then
{@address1
} else
{@address2
}
Edited by DBlank - 16 Feb 2011 at 9:42am
IP Logged
Central
Groupie
Joined: 16 Feb 2011
Online Status: Offline
Posts: 56
Posted: 17 Feb 2011 at 3:19am
Tried it and it worked.
Thanks for the advice on this problem.
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.