Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default (automatic) Click in Option Group

Status
Not open for further replies.

waldemar

Programmer
Nov 15, 2001
245
DE
How can I set a value in an option group by VBA?

I have a global variable that keeps the value of the option group. On entering the form I would like to read out this variable and let Access "click" on the according option button. Simply setting the value property does not seem to work (Me.optResults.Value = gValue)...
 
Option groups are contained within a frame, and the value used by access is the frame value:

Me![fraOptions] = gValue

Changing the value of the frame will automatically select the right item for you.

VBSlammer
redinvader3walking.gif
 
Oops Sorry, of course it works the other way as well.... was a problem with the global variable :). Thanks anyway!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top