报告中有一个非常奇怪的错误。返回到报表的记录集中有一条记录未在页面上打印。当我复制SQL语句并直接在SQL Server Management Studio中运行时,行就在那里,所以我知道它不在选择公式中。这也告诉我表/视图链接是正确的(虽然我也仔细检查过)。我已经完成了所有分组级别,并查看了抑制设置和组排序。从本质上讲,我已经耗尽了所有可以找到的选项,这些选项会导致此记录被抑制,并且无法在任何可能被抑制或隐藏的视图中找到。在与Crystal合作的22年里,我还没有看到过这种行为。
任何可能导致一条记录被抑制的想法,而周围的所有其他记录仍然可见?我是2013版,支持包4(14.1.4.13274)。如果我可以避免,我宁愿不从头开始重建这份报告,但我非常接近这一报告的边缘。
按要求查询:
SELECT" KENNEL"。" KENNEL_NO"," KENNEL"。" ANIMAL_ID"," KENNEL"。& #34; TAG_NO"," ANIMAL"。" YEARS_OLD"," ANIMAL"。" MONTHS_OLD"," ANIMAL&# 34;。" ANIMAL_ID"," ANIMAL"。" PRIMARY_BREED"," ANIMAL"。" SECONDARY_BREED",&# 34;动物"。" PRIMARY_COLOR","动物"。" SECONDARY_COLOR"," ANIMAL"。" ANIMAL_TYPE&#34 ;," KENNEL"。" OUTCOME_DATE_NULL"," v_tx_feed_sheet"。" visit_type"," v_tx_feed_sheet"。&#34 ; resolved_date"," v_tx_feed_sheet"。" visit_date"," v_tx_feed_sheet"。" CONDITION_TYPE"," v_tx_feed_sheet" 。" TREATMENT_DESC"," dfl_kennel_groupings"。" Ani_Loc_Sub"," dfl_kennel_groupings"。" Ani_Loc"," KENNEL"。" OUTCOME_TYPE"," KENNEL"。" OUTCOME_SUBTYPE"," KENNEL"。" OUTCOME_DATE", " v_tx_feed_sheet" 。" CYCLE"," v_tx_feed_sheet"。" MEDICATION"," v_tx_feed_sheet"。" NUM_DAYS"," dfl_kennel_groupings"。" Offsite_Knl"," KENNEL"。" INTAKE_DATE"," KENNEL"。" REASON", " ANIMAL"。" age_now"," ANIMAL"。" DOB" FROM((" ANIMAL"。" SYSADM"。" KENNEL"" KENNEL" INNER JOIN" ANIMAL"。&# 34; SYSADM"。" dfl_kennel_groupings"" dfl_kennel_groupings" ON" KENNEL"。" KENNEL_NO" =" dfl_kennel_groupings" 。" Kennel_No")LEFT OUTER JOIN" ANIMAL"。" SYSADM"。" ANIMAL"" ANIMAL" ON&# 34; KENNEL"。" ANIMAL_ID" =" ANIMAL"。" ANIMAL_ID")LEFT OUTER JOIN" ANIMAL"。" SYSADM"" v_tx_feed_sheet" " v_tx_feed_sheet" ON" KENNEL"。" ANIMAL_ID" =" v_tx_feed_sheet"。" ANIMAL_ID" 在哪里" ANIMAL"。" ANIMAL_TYPE" =' DOG' AND" KENNEL"。" KENNEL_NO"不喜欢' DHA%'而不是(" KENNEL"。" KENNEL_NO" =' HOME'或" KENNEL"。" KENNEL_NO" =&# 39; LOST')和" KENNEL"。" KENNEL_NO"喜欢' B%' AND" dfl_kennel_groupings"。" Offsite_Knl" =' N' AND((" KENNEL"。" OUTCOME_DATE_NULL" =' Y' AND((" v_tx_feed_sheet"。" resolved_date" > = {ts' 1899-12-30 00:00:00'}和" v_tx_feed_sheet"。" resolved_date"< {ts' 1899 -12-30 00:00:00'}))或(" v_tx_feed_sheet"。" resolved_date" IS NULL)))OR(" KENNEL"。 " OUTCOME_DATE_NULL" =' Y' AND" ANIMAL"。" YEARS_OLD" = 0 AND" ANIMAL"。&#34 ; MONTHS_OLD"< = 4)或(" ANIMAL"。" ANIMAL_TYPE" =' DOG' AND" KENNEL"。&# 34; OUTCOME_SUBTYPE" LIKE' SURG%' AND(" KENNEL"。" OUTCOME_DATE"> = {ts' 2017-04-26 00:00:00'}和" KENNEL"。" OUTCOME_DATE"< {ts' 2017-04-27 00:00:00'}) )或(" ANIMAL"。" ANIMAL_TYPE" =' DOG' AND" KENNEL"。" OUTCOME_SUBTYPE" LIKE&# 39; SURG%' AND(" KENNEL"。" OUTCOME_DATE"> = {ts' 2017-04-27 00:00:00'} AND" KENNEL"。&#34 ; OUTCOME_DATE"< {ts' 2017-04-28 00:00:00'}))或(" ANIMAL"。" ANIMAL_TYPE" =& #39; DOG' AND(" KENNEL"。" INTAKE_DATE"> = {ts' 2017-04-27 00:00:00'}和" KENNEL&#34 ;" INTAKE_DATE"< {ts' 2017-04-28 00:00:00'})))而不是(" KENNEL"。" ;原因" =' DOA'或" KENNEL"。" REASON" =' EUTH'或" KENNEL" 。"原因" =' EUTH BEHAV'或" KENNEL"。" REASON" =' EUTH ILL' OR&# 34; KENNEL"。" REASON" =' EUTH OLD'或" KENNEL"。" REASON" =' EUTH OTHER& #39;或" KENNEL"。"原因" =' EUTH YOUNG')