This message was edited by DrMarten at 2007-1-3 12:0:44
: hello!
: i m using two radiobutton in the form i.e.for one button is used for male and another one is used for female can anyone give coding for the button to insert into database
_____________________________________________________________________
Hi,
Put the two radiobuttons in a groupbox, that way only one can be selected.
If radiobutton1.checked = True Then
sex="Male"
Else
sex="Female"
EndIf
Try the MSDN library first if you don't have it installed with your Visual Studio.>>
http://msdn.microsoft.com/library/
Put a dot after a control name and some things become obvious.
Regards,
Dr M.
P.S. How about using the word "please" occasionally when asking for
help with code?