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!

Analysis Date Question

Status
Not open for further replies.

slickp

Technical User
Feb 15, 2006
35
GB
Crystal 10

I have a field in a table called analysisperiod, which shows the month and year of each transaction as a number in this format, 200703 for March 2007.

I need to create a formula which uses the current date to create this number. I have extracted the month and year from current date using: Year(currentdate) and Month(currentdate). However i'm getting stuck on sticking them together as a number. Help?
 
Try:

year(currentdate)*100 + month(currentdate)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top