Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordsets manipulation

Status
Not open for further replies.

sabavno

Programmer
Jul 25, 2002
381
CA
Hi

My goal is to create the table like that:

Transit AssetType Charges

80000 1 200
90000 2 300
85000 1 250


I have my transits in one recordset. I take one value at the time, pass it to another function that retrieves the AssetTYpe and charges for particular transit and stores it in another recordset. Then I move on to the next transit.

The workflow is this:

Select Transits into rst_transits

Do Unitl rst_transits.EOF
param = rst_transits("Transit_No")
call AnotherFunction()
rst_transits.MoveNext
Loop

Function AnotherFunction(Transit_No)

Select AssetType, Charges where transit = param

Create HTML table that looks like the one above.



PLEASE, help me with this....as I really have a critique deadline for this and don't have a time to study this myself.



Thanks...

 
Is this for some school/course work? Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Open your table tag and set the headers prior to your code above...

<Table width= ...blah blah><TR>
<TD>Transit</TD>
<TD>Asset TypeTD>
<TD>Charges<TD>
</TR>

place code like the below into your code after your
Select AssetType, Charges where transit = param
statement

<TR>
<TD><%=rst_transits(&quot;transit_no&quot;)%>></TD>
<TD><%=rst_transits(&quot;transit_no&quot;)%>></TD>
<TD><%=rst_transits(&quot;transit_no&quot;)%>></TD>
</TR>

and then close your table after all the code Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top