I'm getting a runtime error on a for next loop and need: Here's my code:
<%
for i=1 to Trim(UCase(Request.QueryString("print"))).Count
If Trim(UCase(Request.QueryString("print"))) (i) = Trim(UCase(rsAuto.Fields.Item("vin").Value)) Then %>
<tr>
<td width="10%" height="45" align="center" valign="middle"><%=(rsAuto.Fields.Item("year").Value)%></td>
<td width="15%" align="center" valign="middle"><%=(rsAuto.Fields.Item("make").Value)%></td>
<td width="30%" align="center" valign="middle"><%=(rsAuto.Fields.Item("vin").Value)%></td>
<td width="15%" align="center" valign="middle"><%=(rsAuto.Fields.Item("title").Value)%></td>
<td width="25%" align="center" valign="middle"><%=(rsAuto.Fields.Item("ticket").Value)%></td>
<td align="middle" valign="middle"><%=(rsAuto.Fields.Item("color").Value)%> </td>
</tr>
<%
End If
Next
%>
The Error I'm getting is:
Microsoft VBScript runtime error '800a01a8'
Object required: '[string: "1G4HR52K7VH448793, 2"]'
Looking at the URL parameters that are being passed it's not putting the value in the number 2 spot like I thought it would. I get the same error when only one option is being passed as well.
Thank you for any help.
Natalie