Calling A Function In One Form From A Funciton In Another Form 
Author Message
 Calling A Function In One Form From A Funciton In Another Form

What is the syntax to call a public function from one form from a
funciton in another form.

For example:

frmForm1 has funFunction1
frmForm2 has funFunction2

How can I call funFunction1 from funFunction2 ?

Thanks.

Rodney M. Gabriel



Mon, 25 Jun 2001 03:00:00 GMT  
 Calling A Function In One Form From A Funciton In Another Form
Hi Rodney,

If both the forms are open and funFunction1 is declared as Public, then
something like this in frmForm2

Private Sub Command1_Click()
  Call funFunction2
End Sub

Private Function funFunction2()
  Call Forms("frmForm1 ").funFunction1
End Function

HTH
--
Dev Ashish (Just my $.001)
---------------
The Access Web ( http://home.att.net/~dashish )
---------------

:What is the syntax to call a public function from one form from a
:funciton in another form.
:
:For example:
:
:frmForm1 has funFunction1
:frmForm2 has funFunction2
:
:How can I call funFunction1 from funFunction2 ?
:
:Thanks.
:
:Rodney M. Gabriel
:
:



Mon, 25 Jun 2001 03:00:00 GMT  
 Calling A Function In One Form From A Funciton In Another Form

Quote:
> What is the syntax to call a public function from one form from a
> funciton in another form.

> For example:

> frmForm1 has funFunction1
> frmForm2 has funFunction2

> How can I call funFunction1 from funFunction2 ?

YOu can either use

Form_frmForm1.funFunction1

or Forms!frmForm1.funFunction1

There are subtle differences between the two that I can't, for the life
of me, remember at the moment.  -- Ken



Mon, 25 Jun 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Calling the Dll funciton from funciton pointer

2. Form in one exe calling form in another exe

3. load another form form one form

4. Calling one form from another

5. How to calling one vb form to another

6. Control Array calls form- but which one?

7. How do I call one form from another

8. Performance Analyzer IDEA -- how do I get function to work in more than one form

9. How to have combo box in one form select record to be used in another form

10. Closing one form from another and resizing the entire form at runtime

11. One form triggering action on another form

12. One form "show" another form

 

 
Powered by phpBB® Forum Software