Using radiobuttons to dictate which form to open

  • Thread starter Thread starter papa jonah
  • Start date Start date
P

papa jonah

I have a "welcome" form that uses radiobuttons that I use to dictate
what form to open (or that is my intent). The reason I have opted to
do it this way instead of just a button to open a form, is I am using
the values associated with the option buttons to indicate in the
underlying table what sort of issue was entered along with the date of
the entry.

How do I set up the database to open a form if frmType=1, or 2 or ...?

TIA
 
You put the radio buttons inside an option group. The control that
represents the option group will obtain the value of the button selected.
Implement an AfterUpdate event for the control that represents the option
group. That way, whenever the user clicks a radio button that changes the
value (i.e., one that's different than the one already selected), that event
will gain control and can interrogate the value of the option group control.
To have the form open with none of the buttons selected, simply omit a
default value in the option group control.
 
But how do I tell the code to open one form vs another dependent on the
radiobuttons?
 
Back
Top