SirDrinksalot
New member
- Local time
- Today, 13:29
- Joined
- Feb 17, 2006
- Messages
- 7
Hi all,
I have a database from which I build a query to populate a table with data, and one of the fields is a user selected date from a calender control. The query looks something like this:
Unforunately, for the date shown above, when inserted into the table it comes out as 09/06/2006, and subsequent queries searching against date do not find this record. I understand that access only uses the US date format mm/dd/yyyy, so the question is how do i stop this from happening? I noticed that if i put a date of 13/09/2006, the date is inserted correctly, but dates with a day value of less than 12 get 'switched'.
Arrgghhhh!!
Dan
I have a database from which I build a query to populate a table with data, and one of the fields is a user selected date from a calender control. The query looks something like this:
Code:
SELECT
SampleSite.SiteID,
Format(#06-09-2006 11:42:19#,"dd/mm/yyyy") AS D_Date,
"" AS UserID,
SampleSite.SampleSite AS SourceID,
0 AS Depth,
0 AS Temp,
0 AS pH,
0 AS ElectricalConductivity,
0 AS DissolvedOxygen, SampleSite.SiteID+"."+SampleSite.SampleSite+"."+SampleSite.Type AS SampleRef,
SampleSite.Suite AS Suite,
"" AS Comments
FROM SampleSite
Unforunately, for the date shown above, when inserted into the table it comes out as 09/06/2006, and subsequent queries searching against date do not find this record. I understand that access only uses the US date format mm/dd/yyyy, so the question is how do i stop this from happening? I noticed that if i put a date of 13/09/2006, the date is inserted correctly, but dates with a day value of less than 12 get 'switched'.
Arrgghhhh!!
Dan