Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2003, 10:12 AM
Authorized User
 
Join Date: Aug 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Default Complex Table (at least for me)

In simple terms I have 3 tables: tblStudents, tblAssignments, and tblAssignmentScores where tblAssignmentScores stores 3 fields tblStudents_keyfield, tblAssignments_keyfield and no_Score. To simplify my scenario I've eliminated some criteria tables, however here's the gist of my problem. I want to build an HTML table that has tblStudent.FirstName&" "&tblStudentLastName data as row headers. Then I want that same table to have tblAssignments.Description to be the column headers (which shrink and grow as assignments are manipulated), and last but not least I want the students scores to populate the appropriate intersections in the table.

I'm stumped, I can create a table that shows all students and a given assignment or all assignments for a given student, but I need a printable table that shows all students and all assignments and each students scores. Can anyone help me?
 
Old August 19th, 2003, 02:53 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I am not 100% sure what you're trying to accomplish. Could you provide an example in plain text of how you would your final result to look?

From what I can guess, you'll need to do some joins between the tables in your query, so all the results are combined. Then you'll need to loop through the recordset. As soon as you "see" a new student (or a new score, not sure about that), you'll need to print new row headers. However, without knowing exactly what you want, it's hard to come up with a solution.

Are you trying something like this??:


                Assignment.Description 1 Assignment.Description 2
Student Name 1 5 1
Student Name 2 5 3
Student Name 3 3
Student Name 4 1 2
Student Name 5 5


If not, please provide some details.


Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to upload complex xml file to 1 db table vangogh XML 3 October 8th, 2007 04:43 AM
Complex calculation. rupen Classic ASP Professional 0 May 18th, 2006 04:37 AM
Complex Dataviews Alaric ADO.NET 0 October 16th, 2003 07:56 AM
Complex table (at least for me) lcsgeek Classic ASP Professional 0 August 19th, 2003 10:13 AM
Complex HTML table (at least for me) lcsgeek Classic ASP Databases 1 August 19th, 2003 03:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.