Hi,
i am calling a report from VB6 like the below
============================================================
strSQL = ""
strSQL = "{Tour_Detail.RefCode} = " & "'" & txtRefCode.Text & "'"
strSQL = strSQL & " AND {Tour_Detail.Status} <> " & "'" & "DE" & "'"
crpt1.Connect = "DSN=Tour;UserId=;Password=;"
crpt1.SelectionFormula = strSQL
crpt1.ProgressDialog = False
crpt1.Formulas(1) = "flag = " & "'" & "Y" & "'"
crpt1.ReportFileName = App.Path & "\rptAgentCost.rpt"
crpt1.PrintFileType = crptWinWord
crpt1.Destination = crptToFile
crpt1.PrintFileName = "C:\Temp\" & Trim(txtRefCode.Text) & ".doc"
crpt1.PrintReport
========================================================
the rptagentcost.rpt contain a subreport. In the subreport , i created a formula "flag". when i run the program the "flag" value is not displaying in the subreport.
anyone can u give a solution to me?
i am calling a report from VB6 like the below
============================================================
strSQL = ""
strSQL = "{Tour_Detail.RefCode} = " & "'" & txtRefCode.Text & "'"
strSQL = strSQL & " AND {Tour_Detail.Status} <> " & "'" & "DE" & "'"
crpt1.Connect = "DSN=Tour;UserId=;Password=;"
crpt1.SelectionFormula = strSQL
crpt1.ProgressDialog = False
crpt1.Formulas(1) = "flag = " & "'" & "Y" & "'"
crpt1.ReportFileName = App.Path & "\rptAgentCost.rpt"
crpt1.PrintFileType = crptWinWord
crpt1.Destination = crptToFile
crpt1.PrintFileName = "C:\Temp\" & Trim(txtRefCode.Text) & ".doc"
crpt1.PrintReport
========================================================
the rptagentcost.rpt contain a subreport. In the subreport , i created a formula "flag". when i run the program the "flag" value is not displaying in the subreport.
anyone can u give a solution to me?