Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Calculating "Workdays" in an Access 2007 Form?

1 view
Skip to first unread message

NC

unread,
Nov 9, 2009, 5:33:01 PM11/9/09
to
How do I calculate the number of work days between two dates using the
"Workdays" function in an Access 2007 Form? Right now, I'm getting the
"#Name?" error when I use "=Workdays([startdate],[enddate])" as my function.
I'm not a coder or programmer so a simple set of instructions would be most
helpful.

Thank you,

NC

KARL DEWEY

unread,
Nov 9, 2009, 6:11:01 PM11/9/09
to
My Access 2007 does not have "Workdays" function.

Try testing the function like this - =Workdays(#11/3/2009#,#11/5/2009#)

Most of the time Access shows "#Name?" when it can not find a field defined
in the SQL statement. Check the field names for typos.


--
Build a little, test a little.

KARL DEWEY

unread,
Nov 9, 2009, 6:38:01 PM11/9/09
to
Found these in another post --
Take a look at : (specifically the dhCountWorkdaysA function)
http://www.mvps.org/access/datetime/date0012.htm

More generaly:
http://www.mvps.org/access/datetime/index.html

--
Build a little, test a little.

NC

unread,
Nov 10, 2009, 12:59:02 PM11/10/09
to
Thank you for the information. Unfortunately, applying the code didn't work
for me (probably as I'm not fully understanding how to use it) and the
alternative way of entering the dates didn't work...

Still workin' on it tho'...

Cheers,

NC

0 new messages