|
-
Feb 10th, 2005, 05:44 PM
#1
Thread Starter
Addicted Member
How to cal function on one form from another
I was wondering if there was a way to call a function on the form of one window from another form on another window?
Thanks.
-
Feb 10th, 2005, 06:09 PM
#2
Frenzied Member
Re: How to cal function on one form from another
Why not just have the function in a global module, then you can call it from any form within the application.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Feb 11th, 2005, 12:00 AM
#3
Re: How to cal function on one form from another
What sort of windows? Same app or different apps?
-
Feb 14th, 2005, 01:22 AM
#4
Thread Starter
Addicted Member
Re: How to cal function on one form from another
Same application.
The function that I want to call is the save function i have on the asp button on the form, would I be able to call that function from another form?
Or if I do create a global module would I be able to refer to fields on the windows form?
-
Feb 14th, 2005, 02:00 PM
#5
Frenzied Member
Re: How to cal function on one form from another
You can create a global "Save" function that accepts a form as a parameter.
Example
VB Code:
Public Sub Save(ByVal FormName As Form)
'Code here
End Sub
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Feb 14th, 2005, 02:09 PM
#6
Thread Starter
Addicted Member
Re: How to cal function on one form from another
So from there I can connect to whichever database I need based on the form as well as access all the fields that reside on that form, is that correct?
-
Feb 14th, 2005, 07:35 PM
#7
Frenzied Member
Re: How to cal function on one form from another
Magiaus
If I helped give me some points.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|