I try to do this thing and tried in several ways. Can you help me. The matter is the following: My database is in acces and the date and hour field is the same in access is not text.
Here's the code:
====Form page=====
<form action="flotadia.cfm?info_fecha='#info_fecha#'&cfid=#cfid#&cftoken=#cftoken#" method="post">
<div align="center">
<input type="submit" name="Submit" value="Buscar">
<input type="text" name="info_fecha">
<span class="etiketas">(dd-mm-aaaa)</span></div></form>
=======flotadia.cfm=======
<cfquery name="dia" datasource="datasource">
select * from tb_informe where info_fecha=#form.info_fecha# order by info_fecha,info_hora asc
</cfquery>
<div class="comuna">
<cfoutput query="dia" >#info_fecha#</cfoutput>
</div>
<cfoutput query="dia">
<p class="campos">#info_hora# </p>
#info_posicion#
#info_velocidad#
#info_direccion#
</cfoutput>
When I put the date in the search form like dd-mm-yyyy, nothing happens in the search and don't pick up the field.
What am I doing wrong???
:-I
Here's the code:
====Form page=====
<form action="flotadia.cfm?info_fecha='#info_fecha#'&cfid=#cfid#&cftoken=#cftoken#" method="post">
<div align="center">
<input type="submit" name="Submit" value="Buscar">
<input type="text" name="info_fecha">
<span class="etiketas">(dd-mm-aaaa)</span></div></form>
=======flotadia.cfm=======
<cfquery name="dia" datasource="datasource">
select * from tb_informe where info_fecha=#form.info_fecha# order by info_fecha,info_hora asc
</cfquery>
<div class="comuna">
<cfoutput query="dia" >#info_fecha#</cfoutput>
</div>
<cfoutput query="dia">
<p class="campos">#info_hora# </p>
#info_posicion#
#info_velocidad#
#info_direccion#
</cfoutput>
When I put the date in the search form like dd-mm-yyyy, nothing happens in the search and don't pick up the field.
What am I doing wrong???
:-I