控制源 [英] Control Source

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

问题描述

你好,我有一个表格,我需要帮助,也许有人可以帮助我。

这个表格我有三个txtboxes一个是(当前日期),(orderdate),(duedate) )

orderdate有订单被取货的日期。截止日期设置为必须退回项目的日期或(一周)。当前日期设置为当前日期超过截止日期时显示消息过期......顺便说一下,我通过控制源使用此代码实现了这一点:


当前日期代码:

Hi there i have a form that i need help on, Maybe someone can help me.
on this form I have three txtboxes one is (the currect date),(orderdate),(duedate)
the orderdate has the date the order was picked up. The due date is set to the date the items must be returned or (one week). The current date is set for when the current date passes the due date it displays a message "past due"...By the way I have made this possible through the control source with this code:

current date code:

展开 | 选择 | Wrap | 行号

推荐答案

这是唯一的方法工作就是如果你的表中有一个字段标记是否返回了该项。复选框是表格或表格的一部分吗?
The only way for this to work is if you have a field in your table that marks if the item is returned. Is the checkbox a part of the table or form?


有一个标记的字段返回其复选框,代码为:

there is a field that is marked returned its the checkbox with the code:

展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号


您还必须将代码放在表单的当前事件中。如果您使用连续表格,这将不起作用。
You also have to put the code in the on current event of the form. This won''t work if you''re using a continuous form.


这篇关于控制源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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