需要帮助:日期参数查询 [英] Need Help with: Date Parameter Queries
本文介绍了需要帮助:日期参数查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个问题。我的目标是提取落在某个日期范围内的数字范围。例如,2007年9月1日为100美元,2007年9月24日为200美元。我希望日期范围可以拿到100美元和200美元。从那里我将总结他们。关键是我只想要当前月份。
已经为两个查询编写了以下SQL。我的问题是我收到的第二个查询#error。
查询1:
展开 | 选择 | Wrap | 行号
解决方案
2007年9月1日的100和
在2007年9月24日的
200。我希望日期范围可以拿到100美元和200美元。从那里我将总结他们。关键是我只想要当前月份。
已经为两个查询编写了以下SQL。我的问题是我收到的第二个查询#error。
查询1:
展开 | 选择 | Wrap | 行号
首先想到的是 - 看起来好像是在混合使用SQL和VBA语法和IIF。 function展开 | 选择 | Wrap | 行号
I have two queries. My goal is to pull a range of numbers that fall on or in a certain date range. For example, $100 on 9/1/2007 and $200 on 9/24/2007. I want the date range to pick up both the 100 and 200 dollars. From there I will sum them. The key is I only want current month.
The following SQL is already written for both Queries. My issue is in the second query I receive #error.
Query 1:
Expand|Select|Wrap|Line Numbers解决方案100 on 9/1/2007 and
200 on 9/24/2007. I want the date range to pick up both the 100 and 200 dollars. From there I will sum them. The key is I only want current month.
The following SQL is already written for both Queries. My issue is in the second query I receive #error.
Query 1:
Expand|Select|Wrap|Line Numbers
First thought - it looks as if you are mixing SQL and VBA syntax with the "IIF" functionExpand|Select|Wrap|Line Numbers
这篇关于需要帮助:日期参数查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆