how would i call a button from another forum? i tried call form2.command2_click but doesnt work
Printable View
how would i call a button from another forum? i tried call form2.command2_click but doesnt work
try
Code:form2.command2.Value = True
button click function is public isnt it
VB Code:
'WRONG private sub command2_click() 'Right Public sub command2_click()
:)
By default, the click events are Private...you would therefore have to change it as shown by Bodwad....if any sub, function, or event is private, it can only be called from within the form that contains it.
Actually,
form2.command2.Value = True
Works, it's how I always have clicked a button.