使用IIf函数返回文本 [英] Return text with IIf function

查看:81
本文介绍了使用IIf函数返回文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我有四个字段:


[起始日期]

[截止日期]

[时间延长]

[维护期]


全部采用日期格式。

我想在文本框字段中输入文本,执行以下操作:


1)如果今天的日期< [开始日期],然后返回?STARTING?

2)如果[开始日期]<今天的日期< [结束日期]然后返回?ONGOING?

3)如果[开始日期]<今天的日期< [时间延长]然后返回?ONGOING?

4)如果[时间延长]为空,那么如果[结束日期]<今天的日期< [维护期]然后返回?维护?

5)如果[时间延长]不是空,那么如果[结束日期]<今天的日期< [维护期]然后返回?维护?

6)如果今天的日期> [维护期],然后返回?完成?


后来,我会想要这条消息?已完成?当用户勾选确认完成的复选框时出现。

一步一步地使用表达式构建器,我到目前为止已经构建了这个:

展开 | 选择 | Wrap | 行号

推荐答案

你不会说你想看到什么,如果有的话日期等于今天。

你不知道任何存储的日期字段是否包含带日期的时间元素。

否则,我认为这是一个合理的直截了当的问题,我愿意很快就会得到一个答案。

如果明天你还没有得到任何东西,那么我们就会看到我们能为你做些什么。
You don''t don''t say what you''d like to see if any of the dates are equal to today.
You don''t say whether any of the stored date fields contain time elements with the date.
Otherwise, I think this is a reasonable straightforward question and I would expect an answer shortly.
If you haven''t got anything by tomorrow, bump the thread and we''ll see what we can do for you.



如果任何日期等于今天,你不会说你想看到什么。
You don''t don''t say what you''d like to see if any of the dates are equal to today.



这是一个很好的评论,实际上它并没有出现在我的脑海里。我的数据库用于跟踪通常会持续数月的项目。因此,如果任何日期等于今天,我想我可以继续将''<''替换为''< =''。

That is a good remark and actually it did not come to my mind. My database is for following up projects that typically will run over months. So if any of the dates are equal to today, I think I can just go along with replacing ''<'' by ''<=''.


您不能说任何存储的日期字段是否包含带日期的时间元素。
You don''t say whether any of the stored date fields contain time elements with the date.



日期字段中没有时间元素。只有dd / mm / yyyy格式的日期。

There are no time elements in the date fields. Only dates on a dd/mm/yyyy format.


否则,我认为这是一个合理的直截了当的问题,我希望很快能得到答案。

如果你明天没有任何东西,那么我们就会看到我们能为你做些什么。
Otherwise, I think this is a reasonable straightforward question and I would expect an answer shortly.
If you haven''t got anything by tomorrow, bump the thread and we''ll see what we can do for you.



感谢您的帮助。


祝你好运,


G 。

Thank you for your help.

Best regards,

G.


展开 | 选择 | Wrap | 行号


这篇关于使用IIf函数返回文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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