Access automation in C#: Click a button on a form

D

Dan

I understand that

oCtl = (Access.Control)oForm.Controls["purposeTextBox"];
Parameters[0] = 2; //second option in option group
oCtl.GetType().InvokeMember("Value",
BindingFlags.SetProperty,
null, oCtl, Parameters);
will fill in a textbox with the number 2.

But the form has a button to submit the value. How do I automate clicking
the button?
 
Top