R
Rune Hellem
Hi
My challenge is that I have a tabel with a column wich represents a date.
Because it's updated through a third-party tool once in a while I get this
problem. The text is in most of the cases formated like this MM/DD/YYYY, but
some rows is formated like this as well YYYY/MM/DD
When discovering this I made the following WHERE clause
......
AND datecolumn LIKE year + '/' + month + '/??'
OR datokolonne like month + '/??/' + year
......
where year and month is user input.
When not having the OR it works all fine, but when I put on OR it goes
crazy, and after a while I don't bother anymore and must shut down Access...
Is it possible to do this a _bit_ more efficient, or should I instead make a
macro which cleans up the format differences?
in advance, tnx
Rune
My challenge is that I have a tabel with a column wich represents a date.
Because it's updated through a third-party tool once in a while I get this
problem. The text is in most of the cases formated like this MM/DD/YYYY, but
some rows is formated like this as well YYYY/MM/DD
When discovering this I made the following WHERE clause
......
AND datecolumn LIKE year + '/' + month + '/??'
OR datokolonne like month + '/??/' + year
......
where year and month is user input.
When not having the OR it works all fine, but when I put on OR it goes
crazy, and after a while I don't bother anymore and must shut down Access...
Is it possible to do this a _bit_ more efficient, or should I instead make a
macro which cleans up the format differences?
in advance, tnx
Rune