Hi folks,
I am starting to relearn visual basic.net from its previous incarnation of visual basic 6. I'm started to use ado.net and while I am OK with the text box, and even reading the check box, I can't find the code I need to be able to let the database know which radio button the user has selected.
Components as follows;
MS Access database with a field with three options to choose from, North, Midlands or South (these are just test terms).
On my form I have three corresponding buttons rdoNorth, rdoMidlands, rdoSouth.
The code after opening access is as follows;
txtFirstName.Text = ds.Tables("clientList").Rows(inc).Item(1)
txtSurname.Text = ds.Tables("ClientList").Rows(inc).Item(2)
txtAddress1.Text = ds.Tables("ClientList").Rows(inc).Item(3)
txtAddress2.Text = ds.Tables("ClientList").Rows(inc).Item(4)
txtAddress3.Text = ds.Tables("ClientList").Rows(inc).Item(5)
txtPostcode.Text = ds.Tables("ClientList").Rows(inc).Item(6)
chkMember.Checked = ds.Tables("ClientList").Rows(inc).Item(8)
I'm at a total lost as to how to write the code for the radio button.
I hope that I've explained myself. Can anyone assist me or point me to a useful resource?
P.S. If I've posted in the wrong forum, apologise in advance. Thank you.
I am starting to relearn visual basic.net from its previous incarnation of visual basic 6. I'm started to use ado.net and while I am OK with the text box, and even reading the check box, I can't find the code I need to be able to let the database know which radio button the user has selected.
Components as follows;
MS Access database with a field with three options to choose from, North, Midlands or South (these are just test terms).
On my form I have three corresponding buttons rdoNorth, rdoMidlands, rdoSouth.
The code after opening access is as follows;
txtFirstName.Text = ds.Tables("clientList").Rows(inc).Item(1)
txtSurname.Text = ds.Tables("ClientList").Rows(inc).Item(2)
txtAddress1.Text = ds.Tables("ClientList").Rows(inc).Item(3)
txtAddress2.Text = ds.Tables("ClientList").Rows(inc).Item(4)
txtAddress3.Text = ds.Tables("ClientList").Rows(inc).Item(5)
txtPostcode.Text = ds.Tables("ClientList").Rows(inc).Item(6)
chkMember.Checked = ds.Tables("ClientList").Rows(inc).Item(8)
I'm at a total lost as to how to write the code for the radio button.
I hope that I've explained myself. Can anyone assist me or point me to a useful resource?
P.S. If I've posted in the wrong forum, apologise in advance. Thank you.