micjohnson
Programmer
I am using MS Access as my database for my small ColdFusion application that has 6 or 7 pages overall. My question is when i fetching recrods from database based on the date. Query is working sometimes and not sometimes.
SELECT *
FROM tblHomeBudget
WHERE DateValue(dtReceipt) = '01/01/2006'
I have several rows on my database but query returns 0 records.
I tried with Format(dtReceipt, "MM/DD/YYYY") also. This thing giving me an error.
Same thing for DATEPART("YYYY", dtReceipt) = '2006'
and DATEPART("M", dtReceipt) = '01'
Please advice me.
Thanks in advance.
SELECT *
FROM tblHomeBudget
WHERE DateValue(dtReceipt) = '01/01/2006'
I have several rows on my database but query returns 0 records.
I tried with Format(dtReceipt, "MM/DD/YYYY") also. This thing giving me an error.
Same thing for DATEPART("YYYY", dtReceipt) = '2006'
and DATEPART("M", dtReceipt) = '01'
Please advice me.
Thanks in advance.