I am importing data from Excel to Access Table using VBA. One of the column has date in the form dd.mm.yyyy but it is stored as short text. How can I change the short text data type to date as dd.mm.yyyy.
Initially I had set the table column as type date but I was not able to import data due to data type mismatch.
Therefore, once the data is in the access table, I would like to change the data type to date with format dd.mm.yyyy.
向表中添加一个新字段 TrueDate,并使用以下表达式更新它:
DateSerial(Mid([TextDate], 7), Mid([TextDate], 4, 2), Mid([TextDate], 1, 2))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.