我在表中有两列(Access DB):
我想在表格中定义第三列,计算上述差异日期之间差异的天数差异。在Access中执行此操作的最佳做法是什么?
谢谢!
使用查询:
Select
Open_Date,
Closed_Date,
DateDiff("d", Open_Date, Closed_Date) As Days
From
YourTableName
使用SQL:
Select [{YourTableName}]![Open_Date]-[{YourTableName}]![Closed_Date]
as {whatever you want to name the calculated field} from [{YourTableName}];