Re: projecting a finish date for a project?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Tom,

that works beautifully; but I have an oversight error. How can I get the
process/code to ignore weekends for the Expected Date field?





"Tom van Stiphout" wrote:

On Sun, 29 Mar 2009 15:37:01 -0700, efandango
<efandango@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Try this:
=DateAdd("d",txt_TodaysDate,txt_ProjectTotalDays -
Forms![frm_Runs]![Run_No])

-Tom.
Microsoft Access MVP


Tom, (hopefully this is a clearer version than my scrambled previous message)

I have:

On subform:

Field Name txt_TodaysDate
Control Source TodaysDate
Format Long Date

Field Name txt_Expected_Date
Control Source =DateAdd("d","txt_TodaysDate","txt_ProjectTotalDays -
Forms![frm_Runs]![Run_No]")
Format Long Date


Field Name txt_ProjectTotalDays
Control Source Unbound
Format General Number

On Main Form
Field Name Run_No
Control Source Forms![frm_Runs]![Run_No]

I get Error# in the 'txt_Expected_Date' field

what am I doing wrong?




"Tom van Stiphout" wrote:

On Sun, 29 Mar 2009 08:49:01 -0700, efandango
<efandango@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Use the DateAdd function to do date math.
=DateAdd("d", TodaysDate, ProjectTotalDays - Run_No)

-Tom.
Microsoft Access MVP


I want to work out the expected Finish date of a project based on taking
todays date and subracting it against a finite number of days for the project
(290), using the current record's Run No as the subracting factor.

So for example:

[TodaysDate]: 29/03/2009
[Run_No]: 61
ProjectTotalDays: 290
number of days to complete =229
[DatetoComplete]: ?


How would I go about doing this?


.



Relevant Pages

  • Re: projecting a finish date for a project?
    ... Microsoft Access MVP ... On subform: ... "Tom van Stiphout" wrote: ... using the current record's Run No as the subracting factor. ...
    (microsoft.public.access.formscoding)
  • Re: Three fields conditionally based on other fields
    ... "Tom van Stiphout" wrote: ... Microsoft Access MVP ... "Josh" wrote: ... (where PhoneType = "Email") ...
    (microsoft.public.access.queries)
  • Re: Secured db now events failing
    ... "Tom van Stiphout" wrote: ... The MDW would reside on the server, and as Joan alrealy said, the ... Microsoft Access MVP ... have set the permissions for each user which works fine on my machine from ...
    (microsoft.public.access.security)
  • Re: Secured db now events failing
    ... all my databases that work fine from my machine reading from the server. ... the target syntax is and where the MDB & MDW are stored to secure them ... "Tom van Stiphout" wrote: ... Microsoft Access MVP ...
    (microsoft.public.access.security)
  • Re: Password question
    ... reports properties event, rather than VB Report_Open. ... "Tom van Stiphout" wrote: ... Microsoft Access MVP ... protect one of the buttons because it is for administrator use only. ...
    (microsoft.public.access.security)