option group update from code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

alek_mil
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

current user and its group 1
current form and control 3
query object 8
table in database 3
Operation must use an updateable query? 2
day name 1
query filter 1
subform in subform 2

Back
Top