自动日期插入 [英] Automatic date Insertion

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

问题描述

你好,因为我一直在这个页面上,但想知道是否有人可以帮我解决这个问题吗?


我的表单上有一个名为Tdate的字段;实际上它是在表单上的子表单中,现在我必须在某个日期输入并且子表单设置为连续表单。所以我的问题是....如何输入日期,当我输入该记录的所有字段时,下一个日期会自动输入下一个记录。例如,如果我要进入日期,例如10/01/09,那么下一个记录在Tdate中。字段将是10/02/09等等。


可以这样做吗?还是有另一种方法可以做到这一点...


lee123

Hello its been awhile since i have been on this page but was wondering if someone could help me figure out this problem?

I have a field on my form named "Tdate" actually it''s in a subform on a form and right now i have to enter in a certain date and the subform is set to continuous form. so my question is....how can i enter in a date and when i have entered in all the fields for that record have the next date automatically enter in the next record. for instance if i was to enter in a date such as 10/01/09 then the next record in the "Tdate" field would be 10/02/09 and so on.

Can this be done? or is there another way to do this...

lee123

推荐答案

在TDate的AfterUpdate事件过程中,设置。默认属性为TDate + 1.
In the AfterUpdate event procedure for TDate, set the .Default property to TDate + 1.


所以我这样说:

So i put it like this:

展开 | 选择 | Wrap | 行号


你已经明白了,但它不是。 DefaultValue 属性。
You''ve got the idea, but it''s not the .DefaultValue property.


这篇关于自动日期插入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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