Worked on something just then that is giving the desired results. Thanks for your help guys.
Used numbers to represent days:
1 = Monday
2 = Tuesday
3 = Wednesday and so on.....
I then used the following SQL statment:strSQL = "SELECT PIVOT_NEW_SEMESTER_DETAILS.New_Semester_Group, PIVOT_NEW_SEMESTER_DETAILS.New_Semester_Day, PIVOT_NEW_SEMESTER_DETAILS.New_Semester_Time_B, PIVOT_NEW_SEMESTER_DETAILS.New_Semester_Time_E, PIVOT_NEW_SEMESTER_DETAILS.New_Semester_Cost FROM PIVOT_NEW_SEMESTER_DETAILS ORDER BY New_Semester_Day, New_Semester_Time_B ASC;"
I then used an if statment in the display page as follows:if rsNewSemester("New_Semester_Day") = "1" then
Response.Write (" <font class=""text3f"">Monday</font>")
elseif rsNewSemester("New_Semester_Day") = "2" then
Response.Write (" <font class=""text3f"">Tuesday</font>")
elseif rsNewSemester("New_Semester_Day") = "3" then
Response.Write (" <font class=""text3f"">Wednesday</font>")
elseif rsNewSemester("New_Semester_Day") = "4" then
Response.Write (" <font class=""text3f"">Thursday</font>")
elseif rsNewSemester("New_Semester_Day") = "5" then
Response.Write (" <font class=""text3f"">Friday</font>")
elseif rsNewSemester("New_Semester_Day") = "6" then
Response.Write (" <font class=""text3f"">Saturday</font>")
elseif rsNewSemester("New_Semester_Day") = "7" then
Response.Write (" <font class=""text3f"">Sunday</font>")
end if
And that seems to of done the trick. As the site will have multiples of the same day, and some days will not be in the DB at times then I needed to get it sorted by day, then starting time. This way seems to of done what I needed.
Thanks once again for pointing me in the right direction.