<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Crystal Reports</title><link>http://forums.asp.net/76.aspx</link><description>Questions and discussions about Crystal Reports.  &lt;a target="_blank" href="http://aspadvice.com/SignUp/list.aspx?l=181&amp;c=11"&gt;Mailing List&lt;/a&gt; &lt;a href="http://www.businessobjects.com/devzone/009"&gt;Dev Zone&lt;/a&gt; &lt;a href="http://aspalliance.com/crystal/"&gt;Community&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Easy Formula Question</title><link>http://forums.asp.net/thread/3270059.aspx</link><pubDate>Thu, 02 Jul 2009 01:34:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3270059</guid><dc:creator>WanderingEye</dc:creator><author>WanderingEye</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3270059.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=76&amp;PostID=3270059</wfw:commentRss><description>&lt;p&gt;Got it.....Create a formula: &lt;/p&gt;
&lt;p&gt;If ToText({table.DateFiled}) &amp;lt;&amp;gt; &amp;quot;&amp;quot; Then &lt;/p&gt;
&lt;p&gt;&amp;quot;text string&amp;quot;&lt;/p&gt;
&lt;p&gt;Else&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;quot; &lt;/p&gt;
&lt;p&gt;Drag the formula into the textbox. &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Easy Formula Question</title><link>http://forums.asp.net/thread/3269848.aspx</link><pubDate>Wed, 01 Jul 2009 21:04:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269848</guid><dc:creator>WanderingEye</dc:creator><author>WanderingEye</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269848.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=76&amp;PostID=3269848</wfw:commentRss><description>&lt;p&gt;Aderegil - thanks for the reply. Let me explain a little more just to&amp;nbsp;be sure we&amp;#39;re on the same page. &lt;/p&gt;
&lt;p&gt;I have a date field that is filled from the DataSet. I also have a text object that has no corresponding record. If the database field for date is not null I want to supply a static string value to the text object.&lt;/p&gt;
&lt;p&gt;Can this be handled through a Formula? It appears your solution deals with DB fields only. &lt;/p&gt;</description></item><item><title>Re: Easy Formula Question</title><link>http://forums.asp.net/thread/3269833.aspx</link><pubDate>Wed, 01 Jul 2009 20:49:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269833</guid><dc:creator>aderegil</dc:creator><author>aderegil</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269833.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=76&amp;PostID=3269833</wfw:commentRss><description>&lt;p&gt;Hello WanderingEye:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One option is to delegate that responsability to the data source and on the Crystal Reports just expect a field with exactly the info that you will put on the text object.&lt;/p&gt;
&lt;p&gt;I do not know the details about your field but you can usually choose between the two values with a CASE statement in your query:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SELECT&lt;/p&gt;
&lt;p&gt;&amp;nbsp; CASE LEN(TheColumn)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; WHEN 0 THEN &amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; ELSE &amp;#39;Static text&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; END AS NewColumn&lt;/p&gt;
&lt;p&gt;&amp;nbsp; FROM ...&lt;/p&gt;
&lt;p&gt;Your NewColumn field will always have the correct text to be assigned to your text object.&lt;/p&gt;</description></item><item><title>Easy Formula Question</title><link>http://forums.asp.net/thread/3269737.aspx</link><pubDate>Wed, 01 Jul 2009 19:41:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269737</guid><dc:creator>WanderingEye</dc:creator><author>WanderingEye</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3269737.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=76&amp;PostID=3269737</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey all, &lt;/p&gt;
&lt;p&gt;Quick question. On a Crystal Report I need to fill a text object based on a Report Field. For example, I have 2 fields 1 populates from the DataSet the other is just a text object. If the dataset field contains a date populate the text object with a static text string. &lt;/p&gt;
&lt;p&gt;There has to be an easy way to do this - right? &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>