VB中的过滤器/参数

时间:2013-04-06 00:42:32

标签: sql visual-studio-2010 sql-server-2005 report-viewer2010

我曾在Google上搜索如何在VB中为Report Viewer创建参数,我得到this

所以,我按照一步一步的流程来了解如何做到这一点。一切似乎都很好但是我在SQL Database上有一个货币数据类型的值上创建参数后。

没有该值(一个具有货币数据类型),这就是结果:

Result

但如果我把它加起来就是错误:

enter image description here

这是我用于参数的代码:

enter image description here

我也是这样做的,所以我可以应用该参数来使用PRINT制作Report Viewer

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        printall.Show()
        printall.txtID.Text = txtID.Text
        printall.txtFname.Text = txtpFName.Text
        printall.txtLname.Text = txtPLname.Text
        printall.txtMI.Text = txtMI.Text
        printall.txtSex.Text = txtSex.Text
        printall.txtStatus.Text = txtStatus.Text
        printall.txtTelNo.Text = txtTel.Text
        printall.txtDocID.Text = txtPDoc.Text
        printall.txtStreetNo.Text = txtStreetNo.Text
        printall.txtStreetName.Text = txtStreetName.Text
        printall.txtProvince.Text = txtProvince.Text
        printall.txtCity.Text = txtCity.Text
        printall.txtBrgy.Text = txtBrgy.Text
        printall.txtFnameKIN.Text = txtFNameKIN.Text
        printall.txtLnameKIN.Text = txtLNameKIN.Text
        printall.txtmiKIN.Text = txtMIKIN.Text
        printall.txtRELATION.Text = txtRelationKIN.Text
        printall.txtTotalDue.Text = txtTotalDue.Text
    End Sub

如何解决?如何将TotalDue添加到报表查看器?任何人都可以帮我这个吗?

0 个答案:

没有答案