Hi all,
I have a report with a subreport passing a manufacturing lead time shared variable to the main report (mfglt). I'm then using the shared variable to determine the date a part needs to start production.
Here's my formula to achieve the date and return a date during the week when production is to start:
whileprintingrecords;
shared numbervar mfglt;
shared datevar flrdate:= {Order Master.CURDUE_10}-mfglt;
If DayOfWeek (flrdate) = 1 then
flrdate := flrdate - 2 else
if DayOfWeek (flrdate) = 7 then
flrdate := flrdate - 1
else
flrdate
I would then like to group on this formula, but it isn't listed as an available field in my group list. What are my options?
My grouping will need to be by week, with all the data in the group in ascending date order.
Here are my specs:
Crystal version 8.0
Pervasive Database using index.ddf to connect
Pertinent Report layout:
GH1 group on order number
GH1a - suppressed
@reset
whileprintingrecords;
shared numbervar mfglt:= 0;
shared stringvar pmdesc := "";
GH1b
Subreport
GH1c
This contains the field with the production start date formula along with other fields related to the order number
Detail section - suppressed
contains part specific information to base summaries off of
Thanks in advance,
Heather
I have a report with a subreport passing a manufacturing lead time shared variable to the main report (mfglt). I'm then using the shared variable to determine the date a part needs to start production.
Here's my formula to achieve the date and return a date during the week when production is to start:
whileprintingrecords;
shared numbervar mfglt;
shared datevar flrdate:= {Order Master.CURDUE_10}-mfglt;
If DayOfWeek (flrdate) = 1 then
flrdate := flrdate - 2 else
if DayOfWeek (flrdate) = 7 then
flrdate := flrdate - 1
else
flrdate
I would then like to group on this formula, but it isn't listed as an available field in my group list. What are my options?
My grouping will need to be by week, with all the data in the group in ascending date order.
Here are my specs:
Crystal version 8.0
Pervasive Database using index.ddf to connect
Pertinent Report layout:
GH1 group on order number
GH1a - suppressed
@reset
whileprintingrecords;
shared numbervar mfglt:= 0;
shared stringvar pmdesc := "";
GH1b
Subreport
GH1c
This contains the field with the production start date formula along with other fields related to the order number
Detail section - suppressed
contains part specific information to base summaries off of
Thanks in advance,
Heather