如何在Vb报告中使用参数 [英] How Do I Use Parameters In A Vb Report

查看:45
本文介绍了如何在Vb报告中使用参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我需要一些帮助:



i在报告数据集中有如下陈述:



Hello Please i need some help with this:

i have the following statements in a report Dataset:

SELECT   CardID, CashierName, TransDate, TransTime, TerminalNumber, CardType,CardNumber,              Amount, Status
FROM            POSTRANS_Cards AS MyDate
WHERE        (TransDate >= @DateFrom) AND (TransDate < DATEADD(d, 1, @DateTo))
ORDER BY TransDate





我遇到的挑战是:



我想直接从vb报表查看器处理报表,但同样的查询返回有关参数的错误。但是当我使用相同的查询时,同样的查询运行良好BIDS。任何有关这方面的帮助将不胜感激。



谢谢



The challenge i have is this:

I want to process the report directly from vb report viewer but this same query is returning an error about the parameters.However the same query is working well when i use the BIDS. Any help on this will be appreciated.

Thank you

推荐答案

从这里开始:使用WinForms ReportViewer控件 [ ^ ]

在那里,您可以找到所需的一切。
Start here: Using the WinForms ReportViewer Control[^]
There you'll find everything what you need.


这篇关于如何在Vb报告中使用参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆