Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crosstab Query 2

Status
Not open for further replies.

TriniGal

Programmer
Sep 28, 2005
84
US
Hello,

I have a crosstab query showing the amount of new units recorded on a montly basis. I have the following code to show it:
Code:
Expr1: Format([L_FOUND],"mmm")

Does anyone know how I would change this to show new units recorded bi-weekly?

Thanks.
 
You may try this:
Expr1: Format([L_FOUND],"ww")\2

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Perhaps:

Format(Format([L_FOUND],"ww")/2,"00")
 
Hello,

I thank you for your quick responses. I neglected to mention that this is a Date/Time field. I am getting a "Type mismatched Error". I'm not sure what I should do now. Any suggestions?
 
Perhaps this ?
Expr1: Format(Val(Format([L_FOUND],"ww"))\2,"00")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Before I try to do this would you mind telling me what the "ww" is please? I like to know what I'm doing and for future reference.
 
ww = format week.

When I tested, \2 returned 0 for week 1.
 
Week number.
Tip: press the F1 key with the cursor insid the Format word.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thank you both so much for all your help. It worked.
 
When I tested, \2 returned 0 for week 1
OOps, sorry.
what about this ?
Format((1+Val(Format([L_FOUND],"ww")))\2,"00"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top