I’m trying to remember the syntax to change a date field into a string. I know I’m close but not 100% correct. Here is what I’m using so far: TO_CHAR(FIELD_NAME). I’m using an Access database. The error I’m getting is: undefined expression. Any help would be very much appreciated.
I’m trying to remember the syntax to change a date field into a string.
Share
Use either
CStr(dateField)orFormat(dateField)to convert.Additionally you can add parameters to
Format()to show it in a different format, such as:Format(dateField, "general date") 9/12/2010Format(dateField, "long date") Monday, September 12, 2011