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!

Week and Year in query 1

Status
Not open for further replies.

checkOut

Technical User
Oct 17, 2002
153
NL
What is the best way to restrict a period in a query.
f.e. : week 34, 2003 t/m week 3, 2004.

3 fields: dteFact, descFact, currFact.

I understand to set wk as datepart("ww";dteFact) and yr to
datepart("yyyy";dteFact) but how can I restrict the period?

Thanx in advance
Gerard
 
If you are working with actual dates then you could use:

Between #01/10/2003# and #01\10\2004#

Or

Between Forms!frmName!startDate And Forms!frmName!endDate

Frank J Hill
FHS Services Ltd.
frank@fhsservices.co.uk
 
What about this ?
WHERE Format(dteFact, "yyyyww") Between "200334" And "200403"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thnx PHV
Nice shot! Clear, easy and working

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top