Diferença entre Datas
Olá galera ,
Eu estou com um um problema .
Eu estou fazendo um gerenciador de EVENTOS
Gostaria de mostrar somente os EVENTOS com a data > = HOJE
o banco é ACCESS
Fiz este código
<table width="100%" border="0" cellspacing="0" cellpadding="0"><% Sql = "Select * From tabEventos Where CDate(Evento_Data) >= CDate('"&Date&"') Order By Evento_Data" Set RSAgenda = Server.CreateObject("AdoDb.RecordSet") RSAgenda.Open Sql,Conn,1,2 If Not RSAgenda.Eof Then While Not RSAgenda.Eof %> <tr> <td height="28" style="background: url(../img/fundo_resultados.gif) repeat-y top left;"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="2%"> </td> <td width="96%" class="texto"> <a href="index.asp?ir=agenda.asp&Evento_Id=<%=RSAgenda("Evento_Id")%>" class="texto"><%=CDate(RSAgenda("Evento_Data"))%> <br /> <%=RSAgenda("Evento_Nome")%></a></td> <td width="2%"> </td> </tr> </table>Bom , o que acontece ,
Neste código IRÁ mostrar somente os EVENTOS que ocorrerá em MAIO .
Os de abril não aparece .
Eu preciso que mostre todos os EVENTOS de HJ e os futuros.
abraço
Discussão (9)
Carregando comentários...