Hi,
I use vba code to import the content of a sheet into a table.
The sql looks something like this
The format of mydate-field in Table1 is date. It worked fine till the last times, when the data in the DateField in excel has changed, the has been extended with some character that is not the part of the date. It is like "20210339ABC". The lenght is fixed. The import didn't stop, but myDate field in the table remains empty.Code:INSERT INTO Table1(Field1, myDate) SELECT(Field1, DateField) FROM [Excel 12.0 Xml;HDR=Yes;Database=C:\Users\MYFILE.xlsb].[DATA$]
I would like to use some formatting-function or serialdate to get the right date in my table, but I couldn't figure out, what would be right way.
Any help would be appreciated.
Thank you