Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A vfp60 report writer question?
Message
From
03/10/2000 10:46:12
 
 
To
02/10/2000 15:45:43
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00423617
Message ID:
00424070
Views:
41
>Robert,
>
>Another approach would be to join tables on Month. Works ok if there are only 2 or 3 years.
>
>I did my reports with ThisYear, LastYear, PrevYear. At they beginning of the routine I determine
>
>ThisYear = 2000
>cThisYear = [FY] + ALLT(STR(ThisYear))
>etc.
>
>Then I select:
>SELECT SUM(IIF(YEAR(dMyDate) = ThisYear, MyValue, 0.00)) AS ThisYearTotal, ;
>SELECT SUM(IIF(YEAR(dMyDate) = LastYear, MyValue, 0.00)) AS LastYearTotal, ;
>....
>(for you, include MONTH() and group on MONTH(). )
>
>and I use the cThisYear, cLastYear, cPrevYear in the headings on my report. Result is a totally generic report which doesn't have to be changed from year to year.
>
>
>>>Otherwise, I am confused.
>>Let me try again:
>>
>>Year Jan
>>1999 jan data
>>2000 jan data
>>-end of detail band
OK thanks...I have been told to do this in the vfp60 report writer.
I need to display 1999 data and 2000 data in the detail line..
I think I need to write code for the report and just display the results in a viewer. what to you think?
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform