I used ADD COMMAND to grab a date that I need so I can schedule reports that required 4 date parameters to pull current records and compare them to last years records.
However, the record selector below seems to cause the ADD COMMAND for low in the report.
======= section formula record selection ==============
{1stdayCY.calendar_date} = {1stdayCY.calendar_date} and
{1stdayLY.calendar_date} = {1stdayLY.calendar_date} and
{enddate.Expr1000} = {enddate.Expr1000} and
{lyenddate.Expr1000} = {lyenddate.Expr1000} and
{lystartdate.Expr1000} = {lystartdate.Expr1000} and
{startdate.Expr1000} = {startdate.Expr1000} and
({mc_ad_insertion.insertion_date} >= {1stdayLY.calendar_date}) and
({mc_ad_insertion.insertion_date} <= {lyenddate.Expr1000}) and
({mc_ad_insertion.insertion_date} >= {1stdayCY.calendar_date}) and
({mc_ad_insertion.insertion_date} <={enddate.Expr1000}) and
{mc_acct_master_view.bus_unit_id} = "MMB" and
{mc_acct_master_view.pub_id} = "MMB" AND
{mc_ad_detail.adv_type} in ["CL", "GC", "CG"] and
not ({mc_ad_cost_view.obj_code} in ["19", "29", "59", "485", "900", "905", "915"]) and
not ({mc_ad_insertion.prod_code} in ["ELDY"])
======== start date " ADD COMMAND" ====================
select convert(smalldatetime, calendar_date, 112)
from mc_period_dates
where period_year =
(select period_year
from mc_period_dates
where calendar_date = convert(varchar, getdate(), 112)) and
period =
(select period
from mc_period_dates
where calendar_date = convert(varchar, getdate(), 112)) and
day_of_period = 1
=============== enddate ADD COMMAND ========================
select convert(smalldatetime, calendar_date, 112)
from mc_period_dates
where period_year =
(select period_year
from mc_period_dates
where calendar_date = convert(varchar, getdate(), 112)) and
period =
(select period
from mc_period_dates
where calendar_date = convert(varchar, getdate(), 112)) and
day_of_period = 7
========================================================
SQL 2k DB
CR 9
When I took the section formula out. I able to see the data from the add Command.
-ebee
However, the record selector below seems to cause the ADD COMMAND for low in the report.
======= section formula record selection ==============
{1stdayCY.calendar_date} = {1stdayCY.calendar_date} and
{1stdayLY.calendar_date} = {1stdayLY.calendar_date} and
{enddate.Expr1000} = {enddate.Expr1000} and
{lyenddate.Expr1000} = {lyenddate.Expr1000} and
{lystartdate.Expr1000} = {lystartdate.Expr1000} and
{startdate.Expr1000} = {startdate.Expr1000} and
({mc_ad_insertion.insertion_date} >= {1stdayLY.calendar_date}) and
({mc_ad_insertion.insertion_date} <= {lyenddate.Expr1000}) and
({mc_ad_insertion.insertion_date} >= {1stdayCY.calendar_date}) and
({mc_ad_insertion.insertion_date} <={enddate.Expr1000}) and
{mc_acct_master_view.bus_unit_id} = "MMB" and
{mc_acct_master_view.pub_id} = "MMB" AND
{mc_ad_detail.adv_type} in ["CL", "GC", "CG"] and
not ({mc_ad_cost_view.obj_code} in ["19", "29", "59", "485", "900", "905", "915"]) and
not ({mc_ad_insertion.prod_code} in ["ELDY"])
======== start date " ADD COMMAND" ====================
select convert(smalldatetime, calendar_date, 112)
from mc_period_dates
where period_year =
(select period_year
from mc_period_dates
where calendar_date = convert(varchar, getdate(), 112)) and
period =
(select period
from mc_period_dates
where calendar_date = convert(varchar, getdate(), 112)) and
day_of_period = 1
=============== enddate ADD COMMAND ========================
select convert(smalldatetime, calendar_date, 112)
from mc_period_dates
where period_year =
(select period_year
from mc_period_dates
where calendar_date = convert(varchar, getdate(), 112)) and
period =
(select period
from mc_period_dates
where calendar_date = convert(varchar, getdate(), 112)) and
day_of_period = 7
========================================================
SQL 2k DB
CR 9
When I took the section formula out. I able to see the data from the add Command.
-ebee