Home All Groups Group Topic Archive Search About
Author
24 May 2005 8:05 AM
maxzsim
Hi,

i have managed to get the data from SQL server but how do i actually
populate the data into the data grid and i am not able to show a true false
in the data grid as i could not specify a true/false field from a query

appreciate any advise

tks & rdgs

Author
24 May 2005 11:22 AM
Douglas Marquardt
Hi rdgs:

Sounds like your from an Access background (SQL Svr does not have true/false fields like Access).
In any case, you can achieve the same visual effect using Case, i.e.

SELECT CASE WHEN MyField <> 0 THEN 'True' ELSE 'False' END AS MyField FROM MyTable

hth,

Doug.


Show quoteHide quote
"maxzsim" <maxz***@discussions.microsoft.com> wrote in message news:5F13C7A8-A280-45BD-B9C9-D140FB9151C8@microsoft.com...
> Hi,
>
>  i have managed to get the data from SQL server but how do i actually
> populate the data into the data grid and i am not able to show a true false
> in the data grid as i could not specify a true/false field from a query
>
>  appreciate any advise
>
> tks & rdgs