954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Generating Report Through ASP


Report


<%
for each y in rsQuery1.Fields
response.write("" & y.name & "")
next
%>

<%
' Counter for shading every other row
dim nCount
nCount = 1
dim sRowStyle
' Loop through each record in the select
rsQuery1.MoveFirst
do until rsQuery1.EOF
if nCount mod 2 = 1 then
sRowStyle = "reportItemOdd"
else
sRowStyle = "reportItemEven"
end if

response.write("")

for each y in rsQuery1.Fields
response.write("" & y.value & "")
next
rsQuery1.MoveNext
nCount = nCount + 1
response.write("")
loop

%>

dinilkarun
Posting Whiz in Training
206 posts since Feb 2008
Reputation Points: 18
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You