从表单查询提取日期 [英] Query pull date from form

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

问题描述

我有一个查询,查看表单上的日期以提取数据,但查询仍然要求提供日期,尽管表单已打开并输入日期。 [表格]。[账单]。[月]

I have a query looking at a date on a form to pull data but the query still asks for the date although the form is open and date is entered. [forms].[billing].[month]

推荐答案

首先关闭,"月份" ;是Access中的*保留*字。其次,控件的名称似乎意味着输入了一个月的值。用户是否实际输入完整日期值?第三,如果是这样,那么你可以尝试使用CDate()函数将值转换为
的真实日期。例如:

First off, "Month" is a *reserved* word in Access. Second, the name of the control seems to imply a value for a month is entered. Is the user actually entering the full date value? Third, if so, then you might try converting the value into a true date using the CDate() function. For example:

CDate(Forms!Billing。[Month])

CDate(Forms!Billing.[Month])

希望有帮助...


这篇关于从表单查询提取日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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