Advertisement

07.04.2008 at 11:58PM PDT, ID: 23540382
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.9

Crystal Reports Formula Help

Asked by trondina in Crystal Reports Software, Business Objects

Tags: , ,

I have created a simple report for a vb.net application pulling from SQL server 2005. My dev environment is MS Studio 2005.

BACKGROUND
I have created a formula to display a customers primary or secondary address based on the current date. For example, when a property owner has 2 homes, the formula will display HOME A address or HOME B address based on today's date against home A and B residing dates. Also, there is an expiration date on the second home much like your credit card.

Good News is i have the formula working and displaying either the primary or secondary addresses PROPERLY as long as there is secondary address DATE data. In the instance that the Database is not contain data in the alternate Address BEGIN DATE, END DATE, or TERM YEAR fields (which could be NULL, the formula will not display the primary address information as I am attempting to have it do.

Basic concept of the decision structure i built was to check to see if the current year was <= the expiration year. If it was, run the checks to figure out which address to display (this part works well). ELSE if the current year was > the expiration year, display the PRIMARY ADDRESS.

it is this last ELSE section that i cannot get to display.

CODE:
local stringVar address;
local numberVar begindate;
local numberVar enddate;
local numberVar termyear;
local numberVar todaydate;
local numberVar currentyear;

begindate:= CDbl({AlternateAddress.BeginDate});
enddate:= CDbl({AlternateAddress.EndDate});
termyear:= CDbl({AlternateAddress.TermYear});

todaydate:= CDbl(Right(ToText(CurrentDate, "yyyyMMdd"), 4));
currentyear:= CDbl(Left(ToText(CurrentDate, "yyyyMMdd"), 4));
 
if currentyear <= termyear then
  (  
    if (todaydate >= begindate) and (todaydate <= enddate) then
        (        
         address:= {AlternateAddress.AltAddress1} + chr(13);
            if not isnull ({AlternateAddress.AltAddress2}) then
                (
                 address:=address + {AlternateAddress.AltAddress2} + chr(13);
                );
         address:= address + chr(10) + {AlternateAddress.AltCity} & ', ' & {AlternateAddress.AltState} & '. ' & {AlternateAddress.AltZipCode};
         address;
        )
    else
        (
        address:= {Property.PropAddress1} + chr(13);
            if not isnull ({Property.PropAddress2}) then
                (
                 address:=address + {Property.PropAddress2} + chr(13);
                );
        address:= address + chr(10) + {Property.PropCity} & ', ' & {Property.PropState} & '. ' & {Property.PropZipCode};
        address;
        )
    )
else
   (
    address:= {Property.PropAddress1} + chr(13);
        if not isnull ({Property.PropAddress2}) then
            (
             address:=address + {Property.PropAddress2} + chr(13);
             );
        address:= address + chr(10) + {Property.PropCity} & ', ' & {Property.PropState} & '. ' & {Property.PropZipCode};
        address;
    );
 




Please help
Thank you in advance  
 
 Start Free Trial
[+][-]07.05.2008 at 12:42AM PDT, ID: 21936241

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 05:26AM PDT, ID: 21936755

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 12:09PM PDT, ID: 21938029

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 12:20PM PDT, ID: 21938065

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 12:21PM PDT, ID: 21938071

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 12:28PM PDT, ID: 21938081

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 01:55PM PDT, ID: 21938357

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 02:00PM PDT, ID: 21938369

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 03:15PM PDT, ID: 21938574

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 03:30PM PDT, ID: 21938627

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 05:19PM PDT, ID: 21938856

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 10:22PM PDT, ID: 21939399

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 11:26PM PDT, ID: 21939521

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 02:03PM PDT, ID: 21941628

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 01:06PM PDT, ID: 21948227

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 03:15PM PDT, ID: 21949121

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Crystal Reports Software, Business Objects
Tags: Crystal Reports, Crystal Reports, Crystal Reports for MS Studio 2005
Sign Up Now!
Solution Provided By: mlmcc
Participating Experts: 2
Solution Grade: B
 
 
[+][-]07.07.2008 at 04:25PM PDT, ID: 21949455

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628