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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Current Date Formula 1

Status
Not open for further replies.

Croaks

Programmer
Jun 29, 2004
26
0
0
GB
Hi i need to use the current date formula to find out what month the report is run and then perform a calculation on a value based on what month it. Ie.. If its Feb i need to / by 2, March /3 and so on

what ive got so far is:

IF CurrentDate = 2004/01/01 THEN True to 31/01/2004 Then ({Operatives.TARGETTURNOVER}) / 2

Help please!!


Cheers

Croaks
 
Hi Croaks

Not to sure if this is what your looking for but:

you may be able to use
Code:
({Operatives.TARGETTURNOVER}) / month(currentdate)

the month() formula should return the month number.

HTH

 
Thats great, exactly what i was after

Thankyou
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top