W
Wayne
Having a bit of trouble with this. What Im trying to do is calculate the
amount of working days between 2 dates, and then provide the resulting value
in a msgbox along with other text.
At the moment I have the formula working, but it is set as the "initial
value" of another field.
The formula is:
DateDiff("d", [First.Day], [Last.Day])+2 - ((DateDiff("w", [First.Day],
[Last.Day]) * 2) + 1)
This formula works perfectly when the user only inputs actual working days,
it's not accurate if they put in the date of a weekend.
Now because it's set as the initial value of another field, it automatically
calculates when either field is changed. What I want is the result of the
formula to appear in a msgbox instead of a field as a value, and anytime
either input field is updated the msgbox should come up. Is it possible?
Thanks
amount of working days between 2 dates, and then provide the resulting value
in a msgbox along with other text.
At the moment I have the formula working, but it is set as the "initial
value" of another field.
The formula is:
DateDiff("d", [First.Day], [Last.Day])+2 - ((DateDiff("w", [First.Day],
[Last.Day]) * 2) + 1)
This formula works perfectly when the user only inputs actual working days,
it's not accurate if they put in the date of a weekend.
Now because it's set as the initial value of another field, it automatically
calculates when either field is changed. What I want is the result of the
formula to appear in a msgbox instead of a field as a value, and anytime
either input field is updated the msgbox should come up. Is it possible?
Thanks