[AccessD] upsizing

Gustav Brock Gustav at cactus.dk
Thu Jul 31 16:37:17 CDT 2008


Hi Charlotte

One way to get around this - if you really need to handle the value as a numeric - is to use Abs():

  If Abs([YourYesNoField]) = 1 Then
    ' something
  End If

Another is to use DataTableAdapters and/or DAL to isolate you from this low-level stuff. I couldn't imagine anything else than this is what you do, but your reply indicates not. Is that really so?

/gustav

>>> cfoust at infostatsystems.com 31-07-2008 17:25 >>>
We have to be careful in our .Net code to always test for 0 or <> 0
because we run against both Access and SQL Server.  Trying to test for
True crashes on one or the other.

Charlotte Foust 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com 
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins
Sent: Wednesday, July 30, 2008 4:48 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] upsizing

oooooooooooooo.... I like that. :)

Susan H.


> Possiby because Access uses -1  for True and you can't represent that 
> with a bit?
>
> What value does SSMA store insert a True record (1 or -1)?
>
>
> On 30 Jul 2008 at 18:45, Susan Harkins wrote:
>
>> SSMA converts Access Yes/No fields to tinyint, instead of bit -- does

>> anyone have an explanation for that?
>>
>> My guess is it's because SQL Server's bit didn't support NULL's until

>> 7.0, but it seems like the wizard would keep up with something like 
>> that. I really can't recall if Access' Yes/No always supported NULLs 
>> or not.
>>
>> Susan H.






More information about the AccessD mailing list