|
This is little off of subject, but I am working in asp and
am displaying results of the below query in an asp page SELECT * FROM TrainingTitle Where Active = -1 order by
Category, date, TrainingTitle Below is the output statement I have that works but need a
little tweaking <% While ((Repeat1__numRows <> 0) AND (NOT
Recordset1.EOF)) %> <%=(Recordset1.Fields.Item("Category").Value)%> <br> <%=(Recordset1.Fields.Item("TrainingTitle").Value)%>
Enrollment Min/Max:
<%=(Recordset1.Fields.Item("MinMax").Value)%> <%=(Recordset1.Fields.Item("Description").Value)%> <%=(Recordset1.Fields.Item("TrainingOrg").Value)%>
- <%=(Recordset1.Fields.Item("EnrollmentPhone").Value)%> <%=(Recordset1.Fields.Item("TLocation").Value)%><br> <%=(Recordset1.Fields.Item("ContactName").Value)%>
- <%=(Recordset1.Fields.Item("EnrollmentEmail").Value)%> $<%=(Recordset1.Fields.Item("Cost").Value)%><br> Date: <%=(Recordset1.Fields.Item("date").Value)%><br> <b>Time:</b> <%=(Recordset1.Fields.Item("Time").Value)%></td> </tr> <% If (Recordset1.Fields.Item("Links").Value)
<> "" Then %>Reference Link: <a
href=""
target="_blank">Click Here</a><% End IF %> <br><br> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 Recordset1.MoveNext() Wend %> It displays each record as its own, but I would like to
group by category, which I can accomplish easy enough in the query with a group
by but not in the display results any suggestions, I have the below examples to
illustrate what I am talking about: Category TrainingTitle Min/Max Description TrainingOrg – EnrollmentPhone TLocation ContactName - EnrollmentEmail Cost date Time <if>Links<end if> Category TrainingTitle Min/Max Description TrainingOrg – EnrollmentPhone TLocation ContactName - EnrollmentEmail Cost date Time <if>Links<end if> VS Category TrainingTitle Min/Max Description TrainingOrg – EnrollmentPhone TLocation ContactName - EnrollmentEmail Cost date Time <if>Links<end if> TrainingTitle Min/Max Description TrainingOrg – EnrollmentPhone TLocation ContactName - EnrollmentEmail Cost date Time <if>Links<end if> Category TrainingTitle Min/Max Description TrainingOrg – EnrollmentPhone TLocation ContactName - EnrollmentEmail Cost date Time <if>Links<end if> TrainingTitle Min/Max Description TrainingOrg – EnrollmentPhone TLocation ContactName - EnrollmentEmail Cost date Time <if>Links<end if> From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Reece (Webmaster) What is the error you are getting? I use the following code and it errors out on me.
Anybody have an idea why this is not working?
|
- Re: [KCFusion] ASP Problem Kelley, Kevin, PRK
- Re: [KCFusion] ASP Problem Daryl Banttari
- RE: [KCFusion] ASP Problem Kelley, Kevin, PRK
- RE: [KCFusion] ASP Problem Jones Matt
- RE: [KCFusion] ASP Problem Kelley, Kevin, PRK
- Re: [KCFusion] ASP Problem Kristi J. Bohling
- RE: [KCFusion] ASP Problem Jones Matt
- RE: [KCFusion] ASP Problem Kelley, Kevin, PRK
