如何使用SQL命令数据库专家在crystal报告中传递参数
How to pass parameters in crystal report using SQL command database Expert
我想通过从 ~ To 中选择日期来生成报告,并希望将这些值传递给在查询末尾写入的变量 x 和 y
SELECT accounts.invoice, tempClient.name, tempClient.businessName,
tempClient.contactNumber,accounts.total, accounts.remaining
FROM accounts
INNER JOIN tempClient
ON accounts.clientCode = tempClient.id where accounts.[dateTime] between ?x and ?y
喜欢
但它给了我错误
说
看到 "Parameter List" 命令右侧的空框了吗?你想在那里创建你的参数。此外,当您引用它们时,您希望使用大括号来执行此操作:{?x}
我想通过从 ~ To 中选择日期来生成报告,并希望将这些值传递给在查询末尾写入的变量 x 和 y
SELECT accounts.invoice, tempClient.name, tempClient.businessName,
tempClient.contactNumber,accounts.total, accounts.remaining
FROM accounts
INNER JOIN tempClient
ON accounts.clientCode = tempClient.id where accounts.[dateTime] between ?x and ?y
喜欢
但它给了我错误
说
看到 "Parameter List" 命令右侧的空框了吗?你想在那里创建你的参数。此外,当您引用它们时,您希望使用大括号来执行此操作:{?x}