【问题标题】:Crystal Report 2008 Add Command Where Clause parameterCrystal Report 2008 添加命令 Where 子句参数
【发布时间】:2012-08-21 13:41:58
【问题描述】:

Crystal 版本 - Crystal Reports 2008 Business Objects - XI

我编写了一个查询来填充子报表,并希望根据用户的输入将参数拉入该查询。我的问题是,我需要在“Where”子句的第一行输入什么正确的语法来接受参数?

我在 Add Command 中创建了一个参数,名为PickDate

这是我在 Crystal Reports 中使用的查询:

   select 
            table2.book_no,
            table2.time_stamp,
            table2.restdate, 
            a.timestamp, 
            a.event_type,
            a.status,
            a.people, 
            a.new_date, 
            a.comments,
            a.operator_id 

    from table1 a, table2
    where table1.book_no  = table2.outage_no

我已经测试了查询,它正在拉所有数据,现在我只需要帮助添加参数来提示用户输入数据时间。

【问题讨论】:

  • 您是否尝试在子报表中使用“选择专家”?你应该可以说 field = {?PickDate}
  • @Andrew edit 非常感谢,这有效,我弄错了它应该是字段 > `{?PickDate}

标签: crystal-reports crystal-reports-2008 crystal-reports-xi


【解决方案1】:

您是否尝试在子报表中使用“选择专家”?你应该可以说 field = {?PickDate}

【讨论】:

    猜你喜欢
    • 2011-04-25
    • 2015-04-28
    • 1970-01-01
    • 2020-02-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-28
    • 1970-01-01
    相关资源
    最近更新 更多