0
sql = "SELECT * FROM tblcsvdump"
set rs = connection.execute(sql)
records = rs.Fields.Count

dim heading(100)
dim pulled(100)
dim i
dim count
dim VAL
dim VEL
i=0
count = 0
for i=0 to records
 heading(count) = rs.Fields(count)
 response.write(heading(count))
 header = heading(count)
'**** THIS ROW HAS ERROR
 pulled(count) = Request.Form(header)
count=count+1
next

The error i receive is....
The function expects a string as input.


What am i doing wrong guys?

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by campkev
0

this is very odd code, so let's start by cleaning it up a little

sql = "SELECT * FROM tblcsvdump"
set rs = connection.execute(sql)
records = rs.Fields.Count

dim heading(100)
dim pulled(100)
dim i
dim VAL
dim VEL


for i=0 to records
 heading(i) = rs.Fields(i)
 response.write(heading(i))
 header = heading(i)
'**** THIS ROW HAS ERROR
 pulled(i) = Request.Form(header)
next

now, what line has error?
header = heading(i)
or
pulled(i) = Request.Form(header)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.