【问题标题】:MSacces datedifference function doesn't workMS访问日期差异功能不起作用
【发布时间】:2015-08-18 18:17:55
【问题描述】:

我正在尝试在查询中使用 DateDiff 函数。但是,当我使用它时,它给了我一个错误。我有 MS-Access 2007。我尝试在查询中使用 DateDiff 函数。我需要以分钟为单位计算这些时间之间的差异。

这是我想要做的:

 DateDiff('n',[timeregistered],[timeresolved])

这是我的错误信息:

You ommited an operand or operator, you entered an invalid character or comma, or you entered text without surrounding it in quotation marks.

然后光标移到“n”后面的第一个逗号。 我搜索了微软网站,语法似乎是正确的。

【问题讨论】:

  • 已经试过了,没用。我也尝试删除“”。但这也不起作用。
  • 请显示完整的 SQL 查询。错误可能并不真的存在。
  • MS-Access 是一个伪数据库。
  • pseudo database 到底是什么意思?

标签: ms-access ms-access-2007 datediff


【解决方案1】:

用途:

DateDiff("n",[timeregistered],[timeresolved])

和/或:

DateDiff('n';[timeregistered];[timeresolved])

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多