OK THANK YOU VEREY MUCH I WILL TRY THIS
"John Vinson" wrote:
[Quoted Text] > On Mon, 24 Jul 2006 17:47:01 -0700, HANA > <HANA[ at ]discussions.microsoft.com> wrote: > > > > >hi John > > > >thank you for reply I did understand you verey well, but now my qustion to > >you is > > > >when i selecet an Option Button it's number was 16 and the othere was 19 > >..... be with me in that!!!! ok frist! Is there is worng in that? > > You should use the AfterUpdate event *OF THE OPTION GROUP CONTROL* - > not the afterupdate event of each button in that control. > > Private Sub ogrMyOptionGroup_AfterUpdate() > If Me!obrMyOptionGroup = 16 Then > <do something appropriate if button 16 was clicked> > End If > > or, more commonly, > > Select Case Me!obrMyOptiongroup > Case 1 > <do something appropriate for option 1> > Case 2 > <and so on and so on... > .... > End Select > > John W. Vinson[MVP] >
|