Add exsiting query to report

2019-03-05 23:28发布

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.

2条回答
Bombasti
2楼-- · 2019-03-05 23:53

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

查看更多
走好不送
3楼-- · 2019-03-05 23:59

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.

Add Command

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

查看更多
登录 后发表回答