Strange, I sent that message on Friday the 13th and it just now shows up
on 5/9.
________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Gerard Wadman
Sent: Wednesday, May 09, 2007 2:14 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] OT (MS Access Help)
That's all it was, I was pulling my hair out for an hour before I
realized the problem.
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> on
behalf of lonwiksell@... <mailto:lonwiksell%40romcorp.com>
Sent: Fri 4/13/2007 9:24 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] OT (MS Access Help)
If you cut and pasted this then one of your problems is that you spelled
it "Bewteen" instead of "Between".
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ]
On Behalf
Of Gerard Wadman
Sent: Friday, April 13, 2007 8:09 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] OT (MS Access Help)
Greetings gang,
I'm trying to create some query conditions that will select
transaction quantities from the Vantage PartTran table.
Basically I want transaction quantities from the current month, last
month, and the previous five months.
For the current month I wrote:
Current: IIf(Year([PUB_PartTran]![TranDate])=Year(Date()) And
Month([PUB_PartTran]![TranDate])=Month(Date()),[PUB_PartTran]![TranQty],
0)
It works perfectly.
For the Last month I employed the "DateAdd" function and wrote:
LastMth: IIf(Year([PUB_PartTran]![TranDate])=Year(Date()) And
Month([PUB_PartTran]![TranDate])=Month(DateAdd("m",-1,Date())),[PUB_Part
Tran]![TranQty],0)
This also works perfectly
For the previous 5 months I employed the "DateAdd" function with the
"Between" operator and wrote:
Previous: IIf([PUB_PartTran]![TranDate])Bewteen(DateAdd("m",-6,Date())
And DateAdd("m",-2,Date())),[PUB_PartTran]![TranQty],0)
This condition fails with either "to many arguments" or "invalid syntax"
depending on where I place the parentheses.
Help!!!!
Gerard M Wadman
MCSE, MCP+I, A+, NET+
Sr. Network Systems Engineer
Scandius BioMedical Inc.
11A Beaver Brook Road
Littleton, MA 01460
978/486-4088 x 124
866/486-4108 (fax)
http://www.scandius.com/ <http://www.scandius.com/>
<http://www.scandius.com/ <http://www.scandius.com/> >
<http://www.scandius.com/ <http://www.scandius.com/>
<http://www.scandius.com/ <http://www.scandius.com/> > >
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
on 5/9.
________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Gerard Wadman
Sent: Wednesday, May 09, 2007 2:14 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] OT (MS Access Help)
That's all it was, I was pulling my hair out for an hour before I
realized the problem.
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> on
behalf of lonwiksell@... <mailto:lonwiksell%40romcorp.com>
Sent: Fri 4/13/2007 9:24 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] OT (MS Access Help)
If you cut and pasted this then one of your problems is that you spelled
it "Bewteen" instead of "Between".
________________________________
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com
<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ]
On Behalf
Of Gerard Wadman
Sent: Friday, April 13, 2007 8:09 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] OT (MS Access Help)
Greetings gang,
I'm trying to create some query conditions that will select
transaction quantities from the Vantage PartTran table.
Basically I want transaction quantities from the current month, last
month, and the previous five months.
For the current month I wrote:
Current: IIf(Year([PUB_PartTran]![TranDate])=Year(Date()) And
Month([PUB_PartTran]![TranDate])=Month(Date()),[PUB_PartTran]![TranQty],
0)
It works perfectly.
For the Last month I employed the "DateAdd" function and wrote:
LastMth: IIf(Year([PUB_PartTran]![TranDate])=Year(Date()) And
Month([PUB_PartTran]![TranDate])=Month(DateAdd("m",-1,Date())),[PUB_Part
Tran]![TranQty],0)
This also works perfectly
For the previous 5 months I employed the "DateAdd" function with the
"Between" operator and wrote:
Previous: IIf([PUB_PartTran]![TranDate])Bewteen(DateAdd("m",-6,Date())
And DateAdd("m",-2,Date())),[PUB_PartTran]![TranQty],0)
This condition fails with either "to many arguments" or "invalid syntax"
depending on where I place the parentheses.
Help!!!!
Gerard M Wadman
MCSE, MCP+I, A+, NET+
Sr. Network Systems Engineer
Scandius BioMedical Inc.
11A Beaver Brook Road
Littleton, MA 01460
978/486-4088 x 124
866/486-4108 (fax)
http://www.scandius.com/ <http://www.scandius.com/>
<http://www.scandius.com/ <http://www.scandius.com/> >
<http://www.scandius.com/ <http://www.scandius.com/>
<http://www.scandius.com/ <http://www.scandius.com/> > >
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]