MSCAL.Calendar.7默认日期 [英] MSCAL.Calendar.7 Default Date

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

问题描述

嘿所有,


如何将MSCAL.Calendar.7日历的默认日期设置为今天的日期?我在其中一张表格上有这个表格,以便员工可以点击指定日期并在那里显示记录表格。我只想让数据自动成为今天的日期,而不是点击所需的日期(几乎在所有情况下都是当天的日期)。


提前致谢,


James

Hey all,

How do I set the default date of my MSCAL.Calendar.7 calendar to today''s date? I have it on one of my forms so that an employee can click on a given date and bring up the records form there. I just want the data to automatically be today''s date, instead of having to click the desired date (which in almost all cases will be the current day''s date).

Thanks in advance,

James

推荐答案


嘿所有,


如何将MSCAL.Calendar.7日历的默认日期设置为今天的日期?我在其中一张表格上有这个表格,以便员工可以点击指定日期并在那里显示记录表格。我只想让数据自动成为今天的日期,而不是点击所需的日期(几乎在所有情况下都是当天的日期)。


提前致谢,


James
Hey all,

How do I set the default date of my MSCAL.Calendar.7 calendar to today''s date? I have it on one of my forms so that an employee can click on a given date and bring up the records form there. I just want the data to automatically be today''s date, instead of having to click the desired date (which in almost all cases will be the current day''s date).

Thanks in advance,

James



你可以在开放活动中添加这个形式',Calendar1是你的MSCAL.Calendar.7名称属性值:


Me.Calendar1.Value =日期

You can add this to form''s on open event, Calendar1 being your MSCAL.Calendar.7 name property value:

Me.Calendar1.Value = Date


我在Open事件集上有''s'作为恢复。如何为此事件设置多个命令?例如日历更新命令?
I have the form''s on Open event set as Restore. How do I set multiple commands to this event? Such as the calendar update command?



我将打开事件表单设置为还原。如何为此事件设置多个命令?比如日历更新命令?
I have the form''s on Open event set as Restore. How do I set multiple commands to this event? Such as the calendar update command?



右键单击表单左上角的方块,然后单击'propreties''。应打开一个标题为表格的方框。转到事件选项卡,单击On Open事件,将出现...。左边的按钮。单击它,并在这些行之间添加代码 -

Right-click on the square in the upper left corner of the form and click ''propreties''. A box should open with the title "Form". Go to event tab, click on the On Open event, and there will be appear a "..." button on the left. Click on it, and add the code between those lines -

展开 | 选择 | Wrap | 行号


这篇关于MSCAL.Calendar.7默认日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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