【发布时间】: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