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!

calculed field to have week number 1

Status
Not open for further replies.

angel75

Technical User
Dec 14, 2004
1
FR
Hi,

First, Sorry for my english......
I need to have a calculed field in a table which represents the week number of a date field in it.
 
This might give you a start. I didn't test it and my guess is that you may have to add 1 to the final result. to get the week number to start at 1 instead of 0.

Trunc ((Reporting_Date -ToDate("1/1/"+ToChar ( ToYear (Reporting_Date ),0)))/7,0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top