Re: Help Needed With Format Of Query Expression
- From: "Larry Linson" <bouncer@xxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 05:40:50 GMT
Format yields a text field. If you obtain the week and year via formatting,
they will BE text and sort as text. You can convert them to numeric with
the CInt or Val function, or you can calculate them instead of using the
Format statement/function to obtain them. I suspect the former will be
simpler than the latter.
Larry Linson
Microsoft Office Access MVP
"Wayne" <cqdigital@xxxxxxxxxxxxxxx> wrote in message
news:383639aa-8b23-46a9-b99f-84b8c60bce85@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 30, 1:37 pm, "KC-Mass" <connearneyATcomcastDOTnet> wrote:
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
Thanks for the reply but I tried that. The Week and Year fields still
sort as Text fields, not Number fields. Even if they did sort as
Number fields the whole thing still falls over when the query spans
several years.
.
- 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
- Re: Help Needed With Format Of Query Expression
- From: KC-Mass
- Re: Help Needed With Format Of Query Expression
- From: Wayne
- Help Needed With Format Of Query Expression
- Prev by Date: Re: Help Needed With Format Of Query Expression
- Next by Date: Re: Popup/context menus not showing in modal forms
- Previous by thread: Re: Help Needed With Format Of Query Expression
- Next by thread: Re: Help Needed With Format Of Query Expression
- Index(es):
Relevant Pages
|