将字段设置为今天的日期 [英] Setting a field to today's date

查看:67
本文介绍了将字段设置为今天的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我原以为这个操作很简单:

展开 | 选择 | Wrap | 行号

解决方案

是,访问权限VBA会在某些情况下删除parens,但它不会影响代码,它应该仍然可以工作。


恕我直言,访问VBA并不比任何其他人更模糊语言;他们都有他们的怪癖!要理解的重要一点是,特别是对于以前使用Visual Basic工作的程序员来说,VBA是一种不同的语言。很多东西都是一样的,但很多功能,甚至名称相似甚至相同的功能,都有不同的表现。


Linq ; 0)>

我从来没有参加过直接的Visual Basic - 我的时间主要是和Ada一起度过的。


尽管如此,我发布问题的原因是因为它没有工作。我的日期字段未设置为今天。


您是否尝试制作字段和自动编辑功能?在哪里它会为您提供日期而不是必须键入日期的人。


如果是这种情况,你需要的就是文本框的属性(在你的表单上)你使用的是把它放在默认值字段中

展开 | 选择 | Wrap | 行号


I would have thought that this operation would be simple:

Expand|Select|Wrap|Line Numbers

解决方案

Yes, Access VBA will remove the parens in some instances, but it doesn''t affect the code, it should still work.

IMHO, Access VBA is no ''murkier'' than any other language; they all have their quirks! The important thing to understand, especially for programmers who have worked previously in straight Visual Basic, is that VBA is a different language. Many things are the same, but many functions, even those with similar or even identical names, perform differently.

Linq ;0)>


I''ve never worked in "straight Visual Basic"--my time was spent mostly with Ada.

Be that as it may, the very reason I''m posting the question is because it DOESN''T work. My date field does not get set to today.


Are you trying to make the field and autodate feature? Where it will put the date in for you instead of someone one having to key in the date.

If that is the case all you need is in the properties for the text box (on your form) you are using put this in the default value field

Expand|Select|Wrap|Line Numbers


这篇关于将字段设置为今天的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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