Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

Report Not generated...

$
0
0
hi, all.

i am using vb6, access and Crystal Report 8.5.

i am saving my Credit Note data in to two tables. both table have similar field named "CNPID". after saving data, it will generate report using CR 8.5. i am using following code for generate report.

Code:

Private Function PrintCN()
    CrRpt1.ReportFileName = App.Path & "\Reports\rptCNPurchase.rpt"
    CrRpt1.SelectionFormula = "{CNPMstr.CNPID}= " & Trim(Text15.Text) And "{CNPMstr1.CNPID}= " & Trim(Text15.Text)
    CrRpt1.Action = 1
End Function

but, it gives "Run Time Error - 13 TYPE MISMATCH"

if i use following

Code:

Private Function PrintCN()
    CrRpt1.ReportFileName = App.Path & "\Reports\rptCNPurchase.rpt"
    CrRpt1.SelectionFormula = "{CNPMstr.CNPID}= " & Trim(Text15.Text)
    CrRpt1.Action = 1
End Function

then it works perfectly, but it shows one table data only.

so, where am i going wrong?

Plz. HELP.

thanking you,

Kaushal.

Viewing all articles
Browse latest Browse all 594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>