If you always have a VALID value, you can use the following to convert
the value.
CDate(Format("20090603080000","@@@@-@@-@@ @@
![Mad :@ :@](/styles/default/custom/smilies/angry.gif)
@
![Mad :@ :@](/styles/default/custom/smilies/angry.gif)
@"))
If you might have invalid strings then you can use
IIF(IsDate(Format("20090603080000","@@@@-@@-@@ @@
![Mad :@ :@](/styles/default/custom/smilies/angry.gif)
@
![Mad :@ :@](/styles/default/custom/smilies/angry.gif)
@")),
CDate(Format("20090603080000","@@@@-@@-@@ @@
![Mad :@ :@](/styles/default/custom/smilies/angry.gif)
@
![Mad :@ :@](/styles/default/custom/smilies/angry.gif)
@")),Null)
Replace Null with #2999-12-31 23:59:59# (or whatever your choice is) if
you want a date generated for the invalid strings instead of a null value.
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
I have a column [date] that is stored in the following format:
20090603080000
I need two things:
Filter all dates for just the past month, and also change this format to an
actual date format.
I'm lost.