Have you defined the CONNECTION object and RECORDSET objects? Can you post that code too?
AFAIK,
var is not a Keyword used to define a variable in ASP. Are you doing that using Javascript/jscript?
var oRs=.....
Regarding
Request("alph")...
Please use
Code:
Response.write Request("alph")
to see if that prints the value as "a" when your querystring values is passed as "a"
I would suggest you to better use
Request.QueryString("alph") instead of
Request("alph").
If that prints the value as "a", then do a response.write for the sql statement.
Response.Write "SELECT * FROM COMPANY WHERE
COMPANY_IMAGEFOLDER LIKE '"& Request("alph") &"%' ORDER BY
COMPANY_IMAGEFOLDER"
Response.End 'To terminated the page being processed by IIS at this level, use
Copy Paste this in your Query window to see if that returns the expected result.
Let us know if you find any thing wierd.
Hope that helps.
Cheers!
-Vijay G