reset option group buttons

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I am using an option group of buttons on a "frmMain" to
open different related forms depending on the users
interests. When I return to the frmMain form the option
group shows the last selected button. How do I "reset"
the option group without closing and reopening the main
form. Thank-you.
 
I am using an option group of buttons on a "frmMain" to
open different related forms depending on the users
interests. When I return to the frmMain form the option
group shows the last selected button. How do I "reset"
the option group without closing and reopening the main
form. Thank-you.

You can code an event:
OptionGroupName = Null

Which event?
Depends upon what you are doing, and why.
Perhaps the Form's Current event, or perhaps in the same event that
you open the other form:

Dim strString as String
If Me!OptionName = 1 Then
strString = "Form1"
Else
strString = "Form2"
End If
Docmd.OpenForm strString
Me!OptionGroupName = Null
 
Back
Top