Reproducing Clicking a Form Button Via Code

grovelli

Registered User.
Local time
Today, 01:37
Joined
Apr 3, 2005
Messages
16
The attached mdb opens two forms on startup. Is there a way to reproduce clicking the Command0 button on the Form3 form via VBA code? I'm asking this because I intend to hide the Form3 form on startup and I'm also forced to use this procedure because the Ricarica subroutine in Module1 works properly only if I don't call it from the FDezzo form but rather from another form.
I've tried using
Form_Form3.Command0_Click
from the Click event of the Update button on the FDezzo form but I get a message that Command0_Click isn't recognised.
 

Attachments

the Command0_Click procedure in Form3 needs to be Public and then you can call it with Forms!Form3!Command0_Click.
 
Excellent!!
Thank you very much:)
 

Users who are viewing this thread

Back
Top Bottom