format in datagrid

drmike

Member
Joined
Mar 3, 2006
Messages
13
Programming Experience
10+
Once again I have to apologise for the question!

I have a field that is a BIT so it's 0 or 1

It appears in a datagridview as a column

All I want is for a Yes/No entry in that column!

I thought it would be format="Yes/No" but obviously not.

In the immediate window ? format(1,"Yes/No") gives Yes and in VB6 (yes I know) format="YES/NO" worked but no more!

Please help to maintain the little sanity I have remaining.

Mike
 
Yes I could presumably do something like that in the SQL statement but it's not really very convenient nor desireable as we haven't decided if it will be an SQL server database or Access and the two systems require different SQL to achieve this.

Are you telling me that in your experience what I want to do can't be done?

Mike
 
Does Access support CASE? I can never recall. I thought there was CAST and CONVERT as well.

However, as you suggested I have used CASE to make the entries as required. Crude but effective.

Mike
 
Back
Top