A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Yearly Forecast Query



 
 
Thread Tools Display Modes
  #1  
Old November 5th, 2009, 06:45 PM posted to microsoft.public.access.forms
hobbit2612 via AccessMonster.com
external usenet poster
 
Posts: 107
Default Yearly Forecast Query

Hi I wonder whether someone can help me please.

I would like to create a query, which will in turn feed a report, that shows
spend forecasts across the year.

The table called tblSpends is set out with the following fields:

ReferenceNo
Area
Cost
ImplementationDate

In my query I would like to be able total the 'Cost' with an
'ImplementationDate' in May in the first column, then in the next column
shows those costs for June and so on and so forth for the rest of the year.

I've looked at using the following If Statement: Sum(If([tblSpends]!
[ImplementationDate] Between 1/5/9 And 31/5/9,[Cost])) but all I get is an
error message saying that this is an 'Undefined function 'If' in expression.
I'm not sure whether I'm on the right track with this but any help would be
greatly appreciated.

Many thanks and regards

Chris

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200911/1

  #2  
Old November 7th, 2009, 07:58 PM posted to microsoft.public.access.forms
hobbit2612 via AccessMonster.com
external usenet poster
 
Posts: 107
Default Yearly Forecast Query

Hi,

I've worked this out, so please don't take up your time with sending a
solution.

Many thanks

Chris

hobbit2612 wrote:
Hi I wonder whether someone can help me please.

I would like to create a query, which will in turn feed a report, that shows
spend forecasts across the year.

The table called tblSpends is set out with the following fields:

ReferenceNo
Area
Cost
ImplementationDate

In my query I would like to be able total the 'Cost' with an
'ImplementationDate' in May in the first column, then in the next column
shows those costs for June and so on and so forth for the rest of the year.

I've looked at using the following If Statement: Sum(If([tblSpends]!
[ImplementationDate] Between 1/5/9 And 31/5/9,[Cost])) but all I get is an
error message saying that this is an 'Undefined function 'If' in expression.
I'm not sure whether I'm on the right track with this but any help would be
greatly appreciated.

Many thanks and regards

Chris


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200911/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:58 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.