Calculating "Workdays" in an Access 2007 Form?

N

NC

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
 
K

KARL DEWEY

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.
 
K

KARL DEWEY

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.


KARL DEWEY said:
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.


NC said:
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
 
N

NC

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

KARL DEWEY said:
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.


KARL DEWEY said:
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.


NC said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top