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.
but, it gives "Run Time Error - 13 TYPE MISMATCH"
if i use following
then it works perfectly, but it shows one table data only.
so, where am i going wrong?
Plz. HELP.
thanking you,
Kaushal.
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
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
so, where am i going wrong?
Plz. HELP.
thanking you,
Kaushal.