is what you're looking for.Code:Form1.Command1.Value = True
if the control does not have a .value property, you can set the sub to public and call it from anywhere.
Code:Public sub Command1_Click() Msgbox "i'm a button" End SubCode:Private sub Form_Load() Command1_Click End Sub




Reply With Quote
