S
stabilo
I have a mdb linked to a table (mytab) that contains a field called
date_open in the following format . eg. 01/10/2005, 02/10/2005,... (meaning
1st of october 2005, 2nd of october 2005).
If I run a query on this table with this criterias : date_open =
#01/10/2005# it correcly shows the rows with date open from October 1st.
However, in VBA, if I have the following sql string :
"SELECT * FROM [mytabe] WHERE date_open = " & '"#" & "01/10/2005" & "#"
after I open the recordset with this string, the record set has the rows
matching the dates 10/01/2005 (10th of January).
it looks like the command .openrecordset(strsql) convert the date from
dd/mm/yyyy to mm/dd/yyyy. Any idea how to correct this problem ?
date_open in the following format . eg. 01/10/2005, 02/10/2005,... (meaning
1st of october 2005, 2nd of october 2005).
If I run a query on this table with this criterias : date_open =
#01/10/2005# it correcly shows the rows with date open from October 1st.
However, in VBA, if I have the following sql string :
"SELECT * FROM [mytabe] WHERE date_open = " & '"#" & "01/10/2005" & "#"
after I open the recordset with this string, the record set has the rows
matching the dates 10/01/2005 (10th of January).
it looks like the command .openrecordset(strsql) convert the date from
dd/mm/yyyy to mm/dd/yyyy. Any idea how to correct this problem ?