I have an ASP page that I constructed that passes values from a form to another ASP page that parces the values into a SQL statement, then passes the SQL statment to a crystal report. The crystal report displays fine within the ActiveX viewer BUT it displays all the records not just the ones selected via SQL. It is as though the Crystal is ignoring my sql query. I had this working but now it seems to ignore my select statments. Here is the code that I use.
<%
ReportName = "Report1.rpt"
%>
<!-- #include Filele="AlwaysRequiredSteps.asp" -->
<%
session("oApp").LogonServer "PDSsql.dll", "Server", "dbname", "uid", "pw"
session("oRpt").SQLQueryString = sqlstring
%>
<!-- #include file = "MoreRequiredSteps.asp" -->
<!-- #include file = "SmartViewerActiveX.asp" -->
<%
ReportName = "Report1.rpt"
%>
<!-- #include Filele="AlwaysRequiredSteps.asp" -->
<%
session("oApp").LogonServer "PDSsql.dll", "Server", "dbname", "uid", "pw"
session("oRpt").SQLQueryString = sqlstring
%>
<!-- #include file = "MoreRequiredSteps.asp" -->
<!-- #include file = "SmartViewerActiveX.asp" -->