MSAccess报告上的计算控制(文本框) [英] Calculated Control (Text Box) on an MSAccess Report

查看:79
本文介绍了MSAccess报告上的计算控制(文本框)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开 | 选择 | Wrap | 行号

推荐答案

您的右括号错位:

You have misplaced right parentheses:

展开 | 选择 | Wrap | 行号


感谢您回复twinnyfo。我使用了您的更改,但收到了不同的错误消息:您输入的表达式无效。(点)或!运算符或无效括号。你可能在Null常量之后输入了无效的标识符或类型的括号。
Thanks for responding twinnyfo. I used your changes but got a different error message: The expression you entered has an invalid .(dot) or ! operator or invalid parentheses. You may have entered and invalid identifier or typed parentheses following the Null constant.


好的 - 你让我实际想一想这个。


在这种情况下,您不能使用Hashtags作为日期值,您需要将主题日期/时间转换为字符串,然后将该字符串与另一个字符串进行比较。然后,如果你想把事情分解成小时,分钟和秒直到凌晨4点,那么你需要 DateDiff()函数来计算秒数,并除以86,400,即秒数在一天,这将给你一天的一小部分,转换成小时,分钟和秒。


听起来很简单,对吧?


这是:

OK - you got me to actually think about this one.

You can''t use the Hashtags for date values in this instance, you need to convert your subject date/time into a string, and then compare that string to another string. Then, if you want things broken down into hours, minutes and seconds until 4:00, then you need the DateDiff() function to calculate by seconds, and divide by 86,400, which is the number of seconds in a day, which will give you a fraction of a day, converted into hours, minutes and seconds.

Sounds easy, right?

Here it is:

展开 | 选择 | Wrap | 行号


这篇关于MSAccess报告上的计算控制(文本框)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆