Calculating workdays on form

Dr_Worm

Board Regular
Joined
Jul 28, 2003
Messages
103
Hi,

Help with Access 97! :oops: (Access XP sometime in the future) :pray:

I need to calculate some dates, they need to be weekdays. What we know is the date the product has to leave the factory, what we want to do is enter that date on a form. After the “FinishDate” is updated three other dates are calculated if needed.
The first one is “PolishFinish” which will use the following calculation (I need help with the syntax);
If PolishShop = “X”, Then
PolishFinish = FinishDate - 2 working days, Else
PolishFinish = “-“

Is it possible to have nested formula’s on a form? If so, what would be the syntax for: If, ElseIf formula?

“Rise up in the cafeteria and stab them with your plastic forks”
:coffee:
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try this in the control source for a text box (ie.Named: Polishfinisher)

=IIf([PolishShop ]="X",FinishDate - 2,"-")

Meaning:

=IIf([PolishShop ]="X",TrueCondition,FalseCondition)

Ziggy
 
Upvote 0

Forum statistics

Threads
1,221,590
Messages
6,160,666
Members
451,662
Latest member
reelspike

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top