obulldog27
Programmer
i am using vb6 sp6.
I get the error parameter not supported when trying to print a datareport based on a query in dataenvironment.
this is the sql statement in DE.
In parameters tab I have
catname, datatype: adiunknown, host datatype: string
This is my code in the my print reports form
I get the error parameter not supported when trying to print a datareport based on a query in dataenvironment.
this is the sql statement in DE.
Code:
SELECT * FROM Comp_Chart WHERE
(CategoryName like (?));
catname, datatype: adiunknown, host datatype: string
This is my code in the my print reports form
Code:
With DataEnvironment1
If .rschemcatname_query.State <> 0 Then .rschemcatname_query.Close
.chemcatname_query (report_options.Text)
End With
ChemCategoryReport.Refresh
ChemCategoryReport.Show
End Sub