Using Excell Worksheet Functions

J

John Conklin

Is it possible to use Excel worksheet functions in Access?

In particular I want to use the NETWORKDAYS function to calculate the number
of workings days between two dates.

Any help or information greatly appreciated.

Thanks,
~John
 
D

Dirk Goldgar

John Conklin said:
Is it possible to use Excel worksheet functions in Access?

In particular I want to use the NETWORKDAYS function to calculate the
number of workings days between two dates.

Any help or information greatly appreciated.

You can do it, but you have to create an instance of an Excel
application object to do it with, and that's usually more overhead than
it's worth. If it's just NETWORKDAYS you need, look at the code posted
here:

http://www.mvps.org/access/datetime/date0006.htm

and here:

http://www.mvps.org/access/datetime/date0012.htm
 
J

John Conklin

Dirk,

Thanks again, this did exactly what I needed.

Your help is greatly appreciated.

~John
 

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