Hello,
I am currently using a macro to copy data from Excel to an Access database. There are some fields that i need to have in access as "mmmm yyyy" (Ex: December 2016) but access seems to be ignoring my attempts to change the data format. My code is the following for the VBA query:
(...)
(...)
I don't know what i am doing wrong, i am setting the column [Start Date] to be in the specified format, but it keeps dd/mm/yyyy.
Does someone know the correct SQL query?
Thanks
I am currently using a macro to copy data from Excel to an Access database. There are some fields that i need to have in access as "mmmm yyyy" (Ex: December 2016) but access seems to be ignoring my attempts to change the data format. My code is the following for the VBA query:
(...)
Code:
qSQL = "UPDATE Flatfile SET [Start Date] = " & "Format([Start Date]," & " ""mmmm yyyy"")"
cn.Execute qSQL
I don't know what i am doing wrong, i am setting the column [Start Date] to be in the specified format, but it keeps dd/mm/yyyy.
Does someone know the correct SQL query?
Thanks