Re: Help Needed With Format Of Query Expression
- From: "KC-Mass" <connearneyATcomcastDOTnet>
- Date: Tue, 29 Apr 2008 23:37:00 -0400
Add two expressions to the query. One is the year and the other is the week
(in that order).
Sort on those and just display your "Week: Format([TxtDate],"ww yy",4)".
Regards
Kevin C
"Wayne" <cqdigital@xxxxxxxxxxxxxxx> wrote in message
news:261662b8-d874-4f05-8304-2c52654ee97a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm using the following expression in the query grid to show the Month
and Year of the date field "TxtDate":
Week: Format([TxtDate],"ww yy",4)
I am grouping the results on this field.
Is there a different way that it can be formatted so that when I sort
the field it will sort by Week and Year e.g.
01 07
02 07
03 07
At the moment it is sorting as a text field:
01 07
10 07
11 07
I can't simply sort by the "TxtDate" field because it isn't part of an
aggregate function and if I Group on TxtDate or use Min or Max the
query gives undesired results.
.
- Follow-Ups:
- Re: Help Needed With Format Of Query Expression
- From: Wayne
- Re: Help Needed With Format Of Query Expression
- References:
- Help Needed With Format Of Query Expression
- From: Wayne
- Help Needed With Format Of Query Expression
- Prev by Date: Re: Union Query Help File Interpretation
- Next by Date: Re: Popup/context menus not showing in modal forms
- Previous by thread: Help Needed With Format Of Query Expression
- Next by thread: Re: Help Needed With Format Of Query Expression
- Index(es):
Relevant Pages
|
|