%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Dim rsSchedule Dim rsSchedule_numRows Set rsSchedule = Server.CreateObject("ADODB.Recordset") rsSchedule.ActiveConnection = MM_objconn_STRING rsSchedule.Source = "SELECT tblSchedule.mProgramme, tblSchedule.mDate, tblSchedule.mTime, tblCategories.mDescription, tblChannels.mChannel FROM tblChannels RIGHT JOIN (tblCategories RIGHT JOIN tblSchedule ON tblCategories.mID = tblSchedule.mCategory) ON tblChannels.mID = tblSchedule.mChannel WHERE (((tblSchedule.mDate) Between Date() And DateAdd('d',6,Date()))) Order By mDate,mTime Asc;" rsSchedule.CursorType = 0 rsSchedule.CursorLocation = 2 rsSchedule.LockType = 1 rsSchedule.Open() rsSchedule_numRows = 0 %> <% Dim rsNotes Dim rsNotes_numRows Set rsNotes = Server.CreateObject("ADODB.Recordset") rsNotes.ActiveConnection = MM_objconn_STRING rsNotes.Source = "SELECT mDescription FROM tblNotes" rsNotes.CursorType = 0 rsNotes.CursorLocation = 2 rsNotes.LockType = 1 rsNotes.Open() rsNotes_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 rsSchedule_numRows = rsSchedule_numRows + Repeat1__numRows %>