Hi,
Could anyone out there give me some help in using selectionformula or any other method in printing a report. I have designed a program in vb 6 and i want it to select flight No details and Date using crystal report 8. I have used the following code but i get type mismatch error
Dim ATMhist as CrystalReports
Dim ATMDate as Date
Set ATMhist = CrystalReport1
ATMDate = Format(txtHDate.Text, "YYYY,mm,dd")
ATMhist.SelectionFormula = "{TManifestHistory.date} = date ( " & ATMDate & " )" And "{TManifestHistory.FlightNo}='" & Combo2 & "'"
ATMhist.WindowState = crptMaximized
ATMhist.Action = 1
NB: I linked the crystal report control to the report file at design time
rgds,
Patrick