PC Review


Reply
Thread Tools Rate Thread

Calling a function in another module

 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      7th Nov 2006
How do I call function "TestFunction" that's located in Module1 when I'm
working in Module2?

Thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?UmFodWwgR3VwdGE=?=
Guest
Posts: n/a
 
      7th Nov 2006
Use:
Call Module1.TestFunction

"Barb Reinhardt" wrote:

> How do I call function "TestFunction" that's located in Module1 when I'm
> working in Module2?
>
> Thanks

 
Reply With Quote
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      7th Nov 2006
I want to concatenate the result of the test function with "Milestone"

Right now, I have "Milestone" & testfunction()

but it doesn't work with the call part.

Suggestions?

"Rahul Gupta" wrote:

> Use:
> Call Module1.TestFunction
>
> "Barb Reinhardt" wrote:
>
> > How do I call function "TestFunction" that's located in Module1 when I'm
> > working in Module2?
> >
> > Thanks

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      7th Nov 2006
Application.Run "Milestone" & testfunction()


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Barb Reinhardt" <(E-Mail Removed)> wrote in message
news:8C842059-B2B6-442A-8903-(E-Mail Removed)...
> I want to concatenate the result of the test function with "Milestone"
>
> Right now, I have "Milestone" & testfunction()
>
> but it doesn't work with the call part.
>
> Suggestions?
>
> "Rahul Gupta" wrote:
>
> > Use:
> > Call Module1.TestFunction
> >
> > "Barb Reinhardt" wrote:
> >
> > > How do I call function "TestFunction" that's located in Module1 when

I'm
> > > working in Module2?
> > >
> > > Thanks



 
Reply With Quote
 
=?Utf-8?B?UmFodWwgR3VwdGE=?=
Guest
Posts: n/a
 
      7th Nov 2006
write Testfunction as

Function Testfunction(ByVal Data_to_be_concatenate As DataType) As ReturnType

for example:

Function TestFunction(ByVal s as String) As String

Hope this will help.

Regards,
Rahul


"Barb Reinhardt" wrote:

> I want to concatenate the result of the test function with "Milestone"
>
> Right now, I have "Milestone" & testfunction()
>
> but it doesn't work with the call part.
>
> Suggestions?
>
> "Rahul Gupta" wrote:
>
> > Use:
> > Call Module1.TestFunction
> >
> > "Barb Reinhardt" wrote:
> >
> > > How do I call function "TestFunction" that's located in Module1 when I'm
> > > working in Module2?
> > >
> > > Thanks

 
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
Calling Module function in query =?Utf-8?B?SGl0ZXNoIENoYXVoYW4=?= Microsoft Access VBA Modules 4 14th Nov 2007 02:17 PM
Calling a function (module) from code =?Utf-8?B?RG9yY2k=?= Microsoft Access Form Coding 7 18th May 2006 04:07 AM
calling a module function =?Utf-8?B?SGxld2lz?= Microsoft Access Form Coding 5 23rd Mar 2006 08:33 PM
calling module function from macro =?Utf-8?B?VE1HcmVlbg==?= Microsoft Access Macros 3 8th Mar 2006 12:17 AM
Calling VBA function that is in another module Jag Man Microsoft Excel Programming 2 7th Jan 2004 03:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:17 PM.