Re: returning data from SQL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



>I posted the following question here before, but got no response. Am I
> posting it in the right place? If not, please tell me where can I get help
> on
> that subject?

Can you show us which post, I cannot find anything about it.


> Below is the question:-
>
> I have a windows form that has a group box having 2 check boxes. The form
> is
> bound to a table in a SQL database (I configured the SQL connection, data
> adapter, dataset) There is one column on that SQL table that I want when
> it
> has a value of "xxx", when loading the windows from, one of the checkboxes
> is
> checked. I wrote the following code which is obviously wrong. Please
> help!!
>
> Select Case DataSet_FPIntake.FP_Intake.HomeTypeColumn.Caption
> Case "FBH"
> ChBox_HomeType.Checked = True
>

Would you not use a radiobutton, that is more build for that?

Although both you can only bind to a boolean column, that is where they are
made, not for a string.

Cor


.


Quantcast