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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Help with expression for Qtr
I’m not very good yet with writing expressions. How would I convert this
expression to get the quarter? Month_1: Sum(IIf([TransDate] Between ([Forms]![frmVariance]![txtMo1]) And DateAdd("m",1,([Forms]![frmVariance]![txtMo1]))-1,[tblTrans_Mstr].[Labor_Cost],0)) Thanks for any help. |
#2
|
|||
|
|||
Help with expression for Qtr
Just change the interval argument of the DateAdd function from "m" to "q".
Ken Sheridan Stafford, England AccessKay wrote: I’m not very good yet with writing expressions. How would I convert this expression to get the quarter? Month_1: Sum(IIf([TransDate] Between ([Forms]![frmVariance]![txtMo1]) And DateAdd("m",1,([Forms]![frmVariance]![txtMo1]))-1,[tblTrans_Mstr].[Labor_Cost],0)) Thanks for any help. -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...eries/201004/1 |
#3
|
|||
|
|||
Help with expression for Qtr
I'm having a good Access day today. Thanks Ken! I won't ask how to do the
year KenSheridan wrote: Just change the interval argument of the DateAdd function from "m" to "q". Ken Sheridan Stafford, England I’m not very good yet with writing expressions. How would I convert this expression to get the quarter? [quoted text clipped - 3 lines] Thanks for any help. -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...eries/201004/1 |
#4
|
|||
|
|||
Help with expression for Qtr
You can not get the Qtr from the [tblTrans_Mstr].[Labor_Cost] as it is not a
date. Format([TransDate], "q") will give you a number representing the quarter of the year that [TransDate] falls in. Explain a little more of what you are trying to achieve. -- Build a little, test a little. "AccessKay" wrote: I’m not very good yet with writing expressions. How would I convert this expression to get the quarter? Month_1: Sum(IIf([TransDate] Between ([Forms]![frmVariance]![txtMo1]) And DateAdd("m",1,([Forms]![frmVariance]![txtMo1]))-1,[tblTrans_Mstr].[Labor_Cost],0)) Thanks for any help. |
#5
|
|||
|
|||
Help with expression for Qtr
On Mon, 26 Apr 2010 23:15:07 GMT, "AccessKay via AccessMonster.com"
u59222@uwe wrote: I'm having a good Access day today. Thanks Ken! I won't ask how to do the year It might be prudent: you'll probably use "y" which is the day of the year rather than the correct but noninuitive "yyyy". -- John W. Vinson [MVP] |
Thread Tools | |
Display Modes | |
|
|