2016-01-23 44 views
0

我想通过从〜选择日期要生成的报告和要传递的那些值变量x和y在查询的末尾写入传入晶体报告参数如何使用SQL命令数据库专家

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 

Like This and try to save

但它给我的错误

Please Help Thanks

回答

1

看到“参数列表”框在SQL命令的右边是空的吗?你想在那里创建你的参数。此外,当你引用它们时,你想用大括号来做到这一点:{?x}

+0

谢谢巴迪... 它工作。 。 。 ! – Major

相关问题