R rodvaN Registered User. Local time Today, 11:35 Joined May 20, 2009 Messages 92 Jun 24, 2009 #1 Greetings, I need to know which is the code for launching buttons without pressing them. Ive tried button_Click.Execute , button.Execute, Me.button_click = true etc. Which is the correct way for this? thanks
Greetings, I need to know which is the code for launching buttons without pressing them. Ive tried button_Click.Execute , button.Execute, Me.button_click = true etc. Which is the correct way for this? thanks
SOS Registered Lunatic Local time Today, 11:35 Joined Aug 27, 2008 Messages 3,512 Jun 24, 2009 #2 Where are you trying to execute this? If in the SAME form module that the button is on then you can just use: YourButtonName_Click
Where are you trying to execute this? If in the SAME form module that the button is on then you can just use: YourButtonName_Click
R rodvaN Registered User. Local time Today, 11:35 Joined May 20, 2009 Messages 92 Jun 24, 2009 #3 What I do is closing the FORM and ther eit shows the last form, and I have the button configured in the last form... How i might do that?
What I do is closing the FORM and ther eit shows the last form, and I have the button configured in the last form... How i might do that?
SOS Registered Lunatic Local time Today, 11:35 Joined Aug 27, 2008 Messages 3,512 Jun 24, 2009 #4 Form_YourOtherFormName.ButtonNameHere_Click but you may have to change the button click event from Private Sub ButtonName_Click() to Public Sub ButtonName_Click() in the actual form that the button resides on.
Form_YourOtherFormName.ButtonNameHere_Click but you may have to change the button click event from Private Sub ButtonName_Click() to Public Sub ButtonName_Click() in the actual form that the button resides on.
R rodvaN Registered User. Local time Today, 11:35 Joined May 20, 2009 Messages 92 Jun 24, 2009 #5 Thanks once again SOS.
SOS Registered Lunatic Local time Today, 11:35 Joined Aug 27, 2008 Messages 3,512 Jun 24, 2009 #6 Glad to be able to help