option group update from code

A

alekm

Hi,
how can I update option group from code, as if someone clicked on radio
button?
Thanx

alek_mil
 
N

Nikos Yannacopoulos

Assuming (a) your option group is named MyOG, (b) it is set to return
values of 1,2,3 for the three available options, and (c) it is on form
MyForm, the code so "select", say, the second option, would be:

Forms![MyForm]![MyOG] = 2

HTH,
Nikos
 
Top