%@LANGUAGE="VBSCRIPT"%> <% If CStr(Request.QueryString("IDMonth")) = "" Then myMonth = Month(Date) Else myMonth = Request.QueryString("IDMonth") End If Set Conn = Server.CreateObject("ADODB.Connection") Conn.ConnectionString = "driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("datos/agenda.mdb") & ";uid=;pwd=;" Conn.Open() set rsData = Server.CreateObject("ADODB.Recordset") rsData.ActiveConnection = Conn rsData.Source = "SELECT * FROM Agenda WHERE (Inicio >= " & myMonth & " AND Cierre <= " & myMonth & ") OR (Inicio >= " & myMonth & " AND Inicio <= " & myMonth & ") OR (Cierre >= " & myMonth & " AND Cierre <= " & myMonth & ")" rsData.CursorType = 0 rsData.CursorLocation = 2 rsData.LockType = 3 rsData.Open() %>