问题
Ms Access documentation suggests there is a data type called "Date/Time Extended" which:
The Date/Time Extended data type stores date and time information and is similar to the Date/Time data type, but it provides a larger date range, a higher fractional precision, and compatibility with the SQL Server datetime2 date type.
However I cannot select this as the option is not in the table design Data Type drop/down list.
My version is Microsoft Access for Microsoft 365 (16.0.12827.20328) 64-Bit.
How can I use the "Date/Time Extended" data type?
回答1:
As far as I can tell, Date/Time Extended is not yet available in the latest release builds.
The documentation seems to be ahead of the actual release.
If you need it regardless, go to the Account page, and sign up for Office Insider, the beta channel, then click update options, and Update Now.
After that, it's in the dropdown for field types. Note that using it will break compatibility with previous versions of Office.
I can currently use the Date/Time Extended data type, and am on version 16.0.13012.20000 (latest beta channel).
Note that I strongly recommend on refraining from using this type for other purposes than testing until it's in a release version and you're 100% sure everyone using the database you intend to use it in has updated to a version that allows it.
来源:https://stackoverflow.com/questions/62464046/how-can-i-use-ms-access-date-time-extended-data-type