Hello there. I apologize if this is a duplicate Topic (but I did conduct a search of this forum to only find peripheral Topics).
Okay...I am having a problem with our Class Schedule database. The problem is sorting by multiple fields. For instance, I would like to sort records by the Course Number and Subject. What I have is a simplied search form, which allows people to search for the following fields:
1) Academic Area
2) Location
3) Semester
4) Days
5) Meeting Times (BEGIN and END)
I have the records currently sorted by Course Number.
I have created an output table that lists classes by Academic Area. However, when someone just searches for Location, the tables are messy. For instance, I get the "header row" for the first record and then
all courses (not just that subject) below it.
It looks something like this:
Anthropology (ANT)
ANT 101
ANT 101
SLG 101
EGR 101
FRE 102
SLG 102
SLG 102
THR 103
What I would like to have is the following:
The person chooses a location, such as
the Grand Canyon. Their results would be
Grand Canyon
ANT 101
ANT 101
EGR 101
FRE 102
SLG 101
SLG 102
SLG 102
THR 103
If people select a Subject area and then
one or all of the other search options, the records are sorted nicely by the Course Number. The problem is that when they search by one of the search options than Subject area, the results are quite messy.
I was wondering if there is an easy solution to this problem than creating additional sub-routines for different outputs. Before I begin totally tearing apart the script, I was wondering if anyone has some suggestions on how I can modify the program to allow multiple sort fields.
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Okay...I am having a problem with our Class Schedule database. The problem is sorting by multiple fields. For instance, I would like to sort records by the Course Number and Subject. What I have is a simplied search form, which allows people to search for the following fields:
1) Academic Area
2) Location
3) Semester
4) Days
5) Meeting Times (BEGIN and END)
I have the records currently sorted by Course Number.
I have created an output table that lists classes by Academic Area. However, when someone just searches for Location, the tables are messy. For instance, I get the "header row" for the first record and then
all courses (not just that subject) below it.
It looks something like this:
Anthropology (ANT)
ANT 101
ANT 101
SLG 101
EGR 101
FRE 102
SLG 102
SLG 102
THR 103
What I would like to have is the following:
The person chooses a location, such as
the Grand Canyon. Their results would be
Grand Canyon
ANT 101
ANT 101
EGR 101
FRE 102
SLG 101
SLG 102
SLG 102
THR 103
If people select a Subject area and then
one or all of the other search options, the records are sorted nicely by the Course Number. The problem is that when they search by one of the search options than Subject area, the results are quite messy.
I was wondering if there is an easy solution to this problem than creating additional sub-routines for different outputs. Before I begin totally tearing apart the script, I was wondering if anyone has some suggestions on how I can modify the program to allow multiple sort fields.
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us