Execute Form Module Code Extrernally

M

Mike Lempel

I have 2 forms, FormA and FormB. There is code associated with the Current
Event of FormA. FormB is opened from FormA, and FormA remains open. When
FormB closes (FormA still open) I would like the Current Event Sub of FormA
to execute. Is this possible, and if so, what is the proper VBA statement?
I'm using Access97.

Thanks very much for any help.
Mike
 
D

Dirk Goldgar

Mike Lempel said:
I have 2 forms, FormA and FormB. There is code associated with the
Current Event of FormA. FormB is opened from FormA, and FormA
remains open. When FormB closes (FormA still open) I would like the
Current Event Sub of FormA to execute. Is this possible, and if so,
what is the proper VBA statement? I'm using Access97.

Thanks very much for any help.
Mike

It is only possible to call that event procedure directly if you change
its declaration from

Private Sub Form_Current()

to

Public Sub Form_Current()

Then you can write (from FormB's Close event):

Forms!FormA.Form_Current
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top