SQL Server 7.0/VB6 Problems with bit and checkboxes 
Author Message
 SQL Server 7.0/VB6 Problems with bit and checkboxes

I'm using VB6sp4 to connect to SQL Server 7sp3 via ADO. I'm using data
binding to bind a bit column to a check box. The problem is that is doesn't
seem to cope with null values. It won't display them, or allow the checkbox
to be updated if its a new record with a null value in it. If I change the
value in code to 0, all seems to work correctly.

Is this behaviour 'By Design', or am I using the control incorrectly?

Ian.



Mon, 28 Jul 2003 01:35:36 GMT  
 SQL Server 7.0/VB6 Problems with bit and checkboxes
I'm pretty sure it can only have one of two values, on or off,
My fix to this problem would be to put the default value of 0 in your
table.  Maybe someone else has better insight to this, but that's what
I would do.



Quote:
> I'm using VB6sp4 to connect to SQL Server 7sp3 via ADO. I'm using data
> binding to bind a bit column to a check box. The problem is that is
doesn't
> seem to cope with null values. It won't display them, or allow the
checkbox
> to be updated if its a new record with a null value in it. If I
change the
> value in code to 0, all seems to work correctly.

> Is this behaviour 'By Design', or am I using the control incorrectly?

> Ian.

Sent via Deja.com
http://www.deja.com/


Mon, 28 Jul 2003 02:55:15 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. SQL 7.0 Bit Field/ASP Form Checkbox

2. SQL Server 7.0 problem with VB6?

3. Problem on SQL-Update Statement with a Data-Control in VB 5 and SQL Server 7.0

4. VB6.0 and SQL Server 7.0 OLAP Active X components -URGENT RESPONSE NEEDED

5. Dates, VB6 and SQL Server 7.0

6. using DTS to import a text file in SQL Server 7.0 with VB6

7. VB6.0 ODBC Error 3027 SQL Server 7.0

8. Locking in SQL Server 7.0 via VB6

9. How to open an upsized SQL Server 7.0 Database through VB6

10. Getting SQL Server 7.0 users with ADOX in VB6

11. VB6 & SQL Server 7.0

12. Access 97 to SQL Server 7.0 Conversion Problem

 

 
Powered by phpBB® Forum Software