改变公式 - 如何以及在哪里? [英] Change The Formula - How and where?
问题描述
大家好,
所以情况如此:
我有一个Access-File(.mdb)。
基本上它的作用是从服务器获取数字(时间值)并计算平均值。
现在我想要它做的就是增加10分钟。
我搜索了一个月的文件并尝试从不同的人那里获得帮助 - >没有成功。
具体和过程:
有一个表格,我可以选择下拉"Just totals"并选择我想要
平均值的人。
然后生成一个excel文件并打开它。结果就是。
如何更改公式 "normal"+ 10 min。 ?
听起来很简单但我无法达到它。
我不是Access的专家(正如我的问题所示)所以我恳请你不要使用专业术语,因为我无法理解
他们。
我希望你们中的一些人可以提供帮助,告诉我你们需要什么。
谢谢你,最好的问候。
Hello Everyone,
so this is the situation:
I have a Access-File (.mdb).
Basically what it does is it takes numbers (time values) from a server and calculates the average.
Now what i want it to do for example is to add 10 minutes to that.
I searched the file for one month and tried to get help from various people -> No success.
To the specifics and the process:
There is a form where i can choose with drop-down "Just totals" and choose the person i want the
average of.
It then generates a excel-file and opens it. There are the results.
How do i change the formula "normal" + 10 min.?
Sounds simple but i could not get to it.
I'm no expert in Access (as my problem shows) so i kindly request you not to use pro-terms as i can not understand
them.
I hope some of you pro's can help, just tell me what you need.
Thank you and best regards.
推荐答案
你可以使用VBA函数DateAdd来达到这个目的 - 它在表单和报表上的文本框的查询和控制源中都可以使用。
You can use the VBA function DateAdd for this purpose - it works both in queries and in the control source of text boxes on forms and reports.
如果你有一个字段[MyTime],你可以使用
If you have a field [MyTime], you can add 10 minutes to it using
查询中的LastTime:DateAdd(" n",10,[MyTime])
LaterTime: DateAdd("n", 10, [MyTime])
,或
= DateAdd ("n",10,[MyTime])
=DateAdd("n", 10, [MyTime])
在文本框的控制源中。
这篇关于改变公式 - 如何以及在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!