Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP and multi value parameters

Status
Not open for further replies.

cnice9

IS-IT--Management
Apr 29, 2003
20
US
I have a report that I am running from an asp page. I am using a multi select input box to get text from the user that is passed to the report like so:

<!-----Marks---------->
<cfquery name="getmarks" datasource="#session.dbname#">
select * from gradecodes
where yearid = #session.getyear# and
locationid = '#form.locationid#'
order by GradeID
</cfquery>


<tr>
<td align="right" valign="top">Grade Codes</td>
<td>
<select name="ClassGrade" size="5" multiple>
<cfloop query="getmarks">
<option value="#TRIM(GradeID)#">#TRIM(GradeID)#</option>
</cfloop>
</select>
</td>
</tr>



This works fine for single value parameters, but I need to be able to pass multiple values to a single parameter field that has been set to accept multiple values. The Crystal report works fine as a stand alone but not via asp.

Please note that I am using CR 9, and sql server 2000 and am more the happy to provide any additional information that may be needed to resolve this problem. Thanks in advance for any assistance.


C.Nice
RealTime Information Technology Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top