How can i change the default value of an option group through a code?
I have an option group called office with 5 options. I want to change the
number of the option through a code like that:
Public function Foffice()
DoCmd.OpenForm “FOrderInformation”
Dim office As Control
Set office = Forms![FOrderinformation]![office]
office.DefaultValue = 1
etc etc
..
end function
However it doesnt work, the option value is not changed.For example, if the
option value was 5 it remains 5 and does not change into 1.Can i write a code doing
this, instead of doing it manually?