By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,604 Members | 1,464 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,604 IT Pros & Developers. It's quick & easy.

Possible to run code in one form from another form?

P: n/a
Hi,

Using A2K3. I have two forms open. I would like to run a procedure
located in form #1 from form #2 before leaving the 2nd form.

I think I've seen this in one of the Access books but can't remember
where. Is this possible and how do I do it?

Thanks!

-pw

use paulwilliamson at spamcop dot net for e-mail
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
something along the lines of

Forms![FormName].ProcedureName(arg1, arg2...)

Not sure if the procedure has to be public or not. Try declaring it as
private if you want... it might work. Didn't test that far.

Nov 13 '05 #2

P: n/a
pi********@hotmail.com wrote:
something along the lines of

Forms![FormName].ProcedureName(arg1, arg2...)

Not sure if the procedure has to be public or not. Try declaring it as
private if you want... it might work. Didn't test that far.


The proc in FormName must be public to be seen by code outside of FormName.
Nov 13 '05 #3

P: n/a
On 2 Nov 2005 13:29:26 -0800, pi********@hotmail.com wrote:
something along the lines of

Forms![FormName].ProcedureName(arg1, arg2...)

Not sure if the procedure has to be public or not. Try declaring it as
private if you want... it might work. Didn't test that far.


It has to be public. That did it. Thanks!
-pw

use paulwilliamson at spamcop dot net for e-mail
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.