PDA

Click to See Complete Forum and Search --> : [RESOLVED] in my formula I need to hide a text object placed in details section


tutus
Apr 17th, 2008, 10:56 AM
Hi,
I have a text object including a command field from my database. When the command field is equal to certain value like, more precisely when it s equal to:
"12/31/9999" , I want to hide that text object ie replace it with space character.

How do I reference the text object in my formula editor, and how do I make it hidden?

Thanx.

jggtz
Apr 17th, 2008, 01:03 PM
Instead of a text object use a formula field

If {Table1.Command}="12/31/9999" then " " else "Text"

tutus
Apr 17th, 2008, 02:16 PM
yes but instead of "Text" I want a date. I guess that gives an error, since the empty string "" doesn t match a date, which guves an error.
Thnx

jggtz
Apr 17th, 2008, 02:40 PM
Try (replace CurrentDate by your date) :

If {Table1.Command}="12/31/9999" then Date(0,0,0) else CurrentDate

tutus
Apr 18th, 2008, 08:16 AM
thnx a lot, works miraculasly :)