PC Review


Reply
Thread Tools Rate Thread

Call an Excel Function from Access

 
 
=?Utf-8?B?U3RldmUgRA==?=
Guest
Posts: n/a
 
      28th Feb 2005
I've attempted to do some research on this but land up in the sections of the
book(s) that deal with programming (which I am not yet there) so I look for
your help at MS Discussion.

There are two fields that I would like to include on this one specific
report which call for the calculation of the Average and the Median
(statistical functions).

I have heard it said that all I have to do is call the Excel worksheet
function from Access ... 'you must have a reference set to excel or late bind
to excel as these worksheet functions are called from excel ...
'worksheetfunction.Excelfunctionname AnyParametersneeded'.

That's still unclear to me. I am such a newbie at creating modules etc.
that I need more tutoring on this in order to make it happen.

Can anyone help?


--
Thanks,
Steve D
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      28th Feb 2005
Steve

The book tells you that use of references involves programming. You post in
a "programming"-related newsgroup. But you want a non-programming
explanation?! <g>

To use the Excel function, after you've set a reference to it in Access,
you'll need to 'ken' some programming. To set the reference, create a new
module, click Tools|References, and locate the line that has your version of
MS Excel. Check the box and Save/close. Your mdb now has a reference to
the Excel object model, including the Median function.

By the way, Access does have an "Average" function, as part of its Totals
query -- but it does expect to have normalized data to work on.

--
Good luck

Jeff Boyce
<Access MVP>

"Steve D" <(E-Mail Removed)> wrote in message
news:7DA52299-3CA1-49B6-8AD7-(E-Mail Removed)...
> I've attempted to do some research on this but land up in the sections of

the
> book(s) that deal with programming (which I am not yet there) so I look

for
> your help at MS Discussion.
>
> There are two fields that I would like to include on this one specific
> report which call for the calculation of the Average and the Median
> (statistical functions).
>
> I have heard it said that all I have to do is call the Excel worksheet
> function from Access ... 'you must have a reference set to excel or late

bind
> to excel as these worksheet functions are called from excel ...
> 'worksheetfunction.Excelfunctionname AnyParametersneeded'.
>
> That's still unclear to me. I am such a newbie at creating modules etc.
> that I need more tutoring on this in order to make it happen.
>
> Can anyone help?
>
>
> --
> Thanks,
> Steve D


 
Reply With Quote
 
=?Utf-8?B?U3RldmUgRA==?=
Guest
Posts: n/a
 
      28th Feb 2005
ouch! it seems i know less of the topic than i originally thought. thank you
none-the-less for offering some insight into this new area of learning for
me. i hope you have a pleasant day.

"Jeff Boyce" wrote:

> Steve
>
> The book tells you that use of references involves programming. You post in
> a "programming"-related newsgroup. But you want a non-programming
> explanation?! <g>
>
> To use the Excel function, after you've set a reference to it in Access,
> you'll need to 'ken' some programming. To set the reference, create a new
> module, click Tools|References, and locate the line that has your version of
> MS Excel. Check the box and Save/close. Your mdb now has a reference to
> the Excel object model, including the Median function.
>
> By the way, Access does have an "Average" function, as part of its Totals
> query -- but it does expect to have normalized data to work on.
>
> --
> Good luck
>
> Jeff Boyce
> <Access MVP>
>
> "Steve D" <(E-Mail Removed)> wrote in message
> news:7DA52299-3CA1-49B6-8AD7-(E-Mail Removed)...
> > I've attempted to do some research on this but land up in the sections of

> the
> > book(s) that deal with programming (which I am not yet there) so I look

> for
> > your help at MS Discussion.
> >
> > There are two fields that I would like to include on this one specific
> > report which call for the calculation of the Average and the Median
> > (statistical functions).
> >
> > I have heard it said that all I have to do is call the Excel worksheet
> > function from Access ... 'you must have a reference set to excel or late

> bind
> > to excel as these worksheet functions are called from excel ...
> > 'worksheetfunction.Excelfunctionname AnyParametersneeded'.
> >
> > That's still unclear to me. I am such a newbie at creating modules etc.
> > that I need more tutoring on this in order to make it happen.
> >
> > Can anyone help?
> >
> >
> > --
> > Thanks,
> > Steve D

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I call a function from one access DB to another =?Utf-8?B?SGFtbWVyXzRfNA==?= Microsoft Access VBA Modules 2 26th Jul 2005 12:28 AM
Call function written in excel from access as a part of a larger . =?Utf-8?B?QW5h?= Microsoft Access VBA Modules 1 1st Feb 2005 06:21 PM
how to call Access's function in different module in Excel VBA =?Utf-8?B?bWlhbyBqaWU=?= Microsoft Excel Programming 0 25th Jul 2004 04:03 AM
how to call Access function&module in Excel VBA?? =?Utf-8?B?bWlhbyBqaWU=?= Microsoft Excel Programming 1 24th Jul 2004 04:49 PM
Excel SERIESSUM Function call in Access... =?Utf-8?B?TXVyYWxp?= Microsoft Access VBA Modules 0 18th Dec 2003 04:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:01 PM.