I created a database on my computer and moved it to the data entry clerks. Our system date formats are reversed. Mine is mm/d/yyyyy, hers is dd/mm/yyyy.
I didn't think this should matter, but it seems to wreaking havoc with my search SQL string. This string is built based on control values on the search form...
[blue]"SELECT * FROM qryDonationSearchOutput WHERE Int(donationEntryDate) >= #01/02/2006# AND Int(donationEntryDate) < #09/02/2006# ORDER BY donationID DESC"[/blue]
I read... "date >= first/Feb/2006 AND date < ninth/Feb/2006"
but it is actually pulling donations between (here comes the reversal) second/Jan/2006 AND second/Sept/2006.
I displayed one of the dates as 'Long Date' with the following...
[blue]Debug.Print sSQLEndDate & vbCrLf & Format(Int(Me.txtSearchDateEnd), "Long date")[/blue]
...displays the following...
Int(donationEntryDate) < #09/02/2006#
February 9, 2006
I checked the tables and they show the date right. So, where on earth is the screwup happening????
Daniel Dillon
o (<--- brain shown at actual size.)
I didn't think this should matter, but it seems to wreaking havoc with my search SQL string. This string is built based on control values on the search form...
[blue]"SELECT * FROM qryDonationSearchOutput WHERE Int(donationEntryDate) >= #01/02/2006# AND Int(donationEntryDate) < #09/02/2006# ORDER BY donationID DESC"[/blue]
I read... "date >= first/Feb/2006 AND date < ninth/Feb/2006"
but it is actually pulling donations between (here comes the reversal) second/Jan/2006 AND second/Sept/2006.
I displayed one of the dates as 'Long Date' with the following...
[blue]Debug.Print sSQLEndDate & vbCrLf & Format(Int(Me.txtSearchDateEnd), "Long date")[/blue]
...displays the following...
Int(donationEntryDate) < #09/02/2006#
February 9, 2006
I checked the tables and they show the date right. So, where on earth is the screwup happening????
Daniel Dillon
o (<--- brain shown at actual size.)