In Access you have 2 forms both with command buttons. I can specify the onclick event for CommandButton2 on Form2 from Form1 CommandButton1.
Private Sub CommandButton1_Click()
Form2!CommandButton2.OnClick = "=addcompanies()"
addcompanies is a function in a module.
How can i do this in VB?