J
JasonS
Hello!
I've got a question regarding formatting data in database using SQL
statement.
I've got a field (Field2) containg such values:
20031202
20031215
20031231
20040123
etc...
They are stored as text values.
What I want to do using SQL statement is to change these values to:
2003/12/02
2003/12/15
2003/12/31
2004/01/23
I want to make them "look like" date in yyyy/mm/dd format, not changing
field's properties - it will still be a text field.
What I've written so far is
Dim MySQLString
MySQLString = "UPDATE Table1 SET Field2 = Format$([Field2],"yyyy/mm/dd")"
DoCmd.RunSQL MySQLString
But Office Assistant says that he can't run this query due to field's
property confilcts
How can I fix that?
Thanx for helping me!
I've got a question regarding formatting data in database using SQL
statement.
I've got a field (Field2) containg such values:
20031202
20031215
20031231
20040123
etc...
They are stored as text values.
What I want to do using SQL statement is to change these values to:
2003/12/02
2003/12/15
2003/12/31
2004/01/23
I want to make them "look like" date in yyyy/mm/dd format, not changing
field's properties - it will still be a text field.
What I've written so far is
Dim MySQLString
MySQLString = "UPDATE Table1 SET Field2 = Format$([Field2],"yyyy/mm/dd")"
DoCmd.RunSQL MySQLString
But Office Assistant says that he can't run this query due to field's
property confilcts

How can I fix that?
Thanx for helping me!