Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how will get value from this query in asp page,
and if condition ....


SQL
set rsInven=server.CreateObject("adodb.recordset")
rsInven.Open "select GivenToCust from crmconfig where module='SPARES USED'",cn
Posted

1 solution

here is one example :

Dim GivenToCust 
Dim GivenToCust_cmd
Dim GivenToCust_numRows

Set GivenToCust_cmd = Server.CreateObject("ADODB.Command")
GivenToCust_cmd.ActiveConnection = Conn
GivenToCust_cmd.CommandText = "select GivenToCust from crmconfig where module='SPARES USED'" 
GivenToCust_cmd.Prepared = true

Set GivenToCust = GivenToCust_cmd.Execute

Dim arrGivenToCust 
arrGivenToCust  = GivenToCust.GetRows()

dim i
response.write "<table>"
For i = 0 to ubound(arrGivenToCust  , 2)
   response.write "<tr>"
   response.write("<td>" + trim(i+1))
   response.write("<table><tbody><tr><td>" + trim(arrGivenToCust  (0,i)))
next
response.write "</td></tr></tbody></table></td></tr></tbody></table></td></tr></table>"
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900