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

Adding days

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I am using a report to get the last order date:

=Max([date_ordered])

and then average number of days between orders:

=DateDiff("d",Min([Date_ordered]),Max([date_ordered]))/Count([itemnumber])

I would now like to have another Text Box that will give me when the estimated next order date is by adding the number of average days between orders to the last order date. I cant seem to get it right....any suggestions?

Thanks!

Paul
 
TextBox = DateAdd("d", AverageDays, Max([date_ordered]))
ought to do the trick......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top