Add exsiting query to report

最后都变了- 提交于 2019-12-02 15:21:25

问题


My report calculates the stock of inks in my stores. I built a SQL statement in VB.NET and got the correct results. How can I display these results in my Crystal Report? Or design a report such that same results will be retrieved?

I tried to use SQL Expression builder but failed.


回答1:


Usually you will link Data Tables to your report using Database Expert. Do the same in Database Expert, select the Database and you can see Add Command. Select that and click the > button. You will get a Window, write your SQL Query there and press OK.

After finishing this you can see Command in Database Fields which contains all your records got from the SQL Query as result.




回答2:


In Database Manager choose Add Command and then type your SQL Statement there.



来源:https://stackoverflow.com/questions/12812222/add-exsiting-query-to-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!