Roman_Candle
Member
- Joined
- Jan 19, 2005
- Messages
- 10
- Programming Experience
- Beginner
i am looking to return data from an access database.
for a normal textbox i use the code
Me.txtName.Text = reader.GetString(1)
which works just fine.
but i was wondering how to return the value of a checkbox from the DB.
ie is something like
Me.ckbYes.Checked = reader.GetBoolean(2)
or could be how i set it up in the DB.
Currently i declare it in the DB as a yes/no field and then set it to true/false in the format field.
thanks
for a normal textbox i use the code
Me.txtName.Text = reader.GetString(1)
which works just fine.
but i was wondering how to return the value of a checkbox from the DB.
ie is something like
Me.ckbYes.Checked = reader.GetBoolean(2)
or could be how i set it up in the DB.
Currently i declare it in the DB as a yes/no field and then set it to true/false in the format field.
thanks