How to retrieve the yes/no field value
VB.NET: MS-Access Interaction Tutorial (Part I)

Hi,

I have sum problems but at present.
I want to retrieve the yes/no field from the table and want to store its status in a checkbox in c#. What is the code for this. If I want to retrive a value to a textbox I will write as follows,

txtcustPO.Text=reader["custpo"].ToString();

But obviously this will not work for a checkbox. I.E the following code will not work.
Checkinvoiced.CheckState=reader["invoicetype"].ToString();

How can I write the code for this?


-question by Chaitra

Reply