"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:ek**************@tk2msftngp13.phx.gbl...
reformat diary_date as yyyy-mm-dd
Also, date/time columns include time so it can be difficult to get a match
without using a range of dates. For example:
SELECT saz_title, saz_text from saz_details where saz_date >=#2004-07-06
00:00:00# and saz_date <#2004-07-07 00:00:00#
--
The drop down list is actually populated from the dates in the database..
so, if there are 4 records say 1/1/2004, 5/9/2004, 12/12/2004,3/9/2005 then
these are the options.
I have a script which pulls in those dates as they stand so why can't I then
select one of those dates??
<select name="diary_date">
<%
set rs = server.CreateObject ("ADODB.Recordset")
strSQL = "SELECT saz_date FROM saz_details"
rs.Open strSQL, conn, 1
do while not rs.EOF
record = rs("saz_date")
response.write "<option>" & record & "</option>"
rs.movenext
loop
%>
^^^ populated list.
the results of which give me 4 dates in the format 07/06/2004
if I then take this and query the database
strSQL = "SELECT saz_title, saz_text from saz_details where saz_date =#" &
diary_date & "#"
....they dont exist!!!