After linking, only -1 or 0, not null

aspfun

Registered User.
Local time
Today, 11:30
Joined
Apr 22, 2006
Messages
29
I used Access to link to a table in SQL server.
After linking, a bit data type in SQL server became "yes/no" column in Access but only list "-1" or "0", missing "null".
How to list "null" in Access linked table?
 
Null is nothing, neither yes, nor no. If nothing is specified in a record for the field, you get a Null, unless the SQL SERVER side forces a 0 for Null which I doubt.

I always test for True or Not True, Null kills you sometimes becuase it's not No.
 
I just tested and, it's true that you can set a bit in SQL server to accept nulls, but you can't have it null in Access when linked to SQL Server.
 

Users who are viewing this thread

Back
Top Bottom