Question : Convert Access String to SQL Server BIT Data Type

I've got a table in MS Access 2000 which contains text strings of "Y" or "N" (for yes and no, obviously).

I'm trying to move that data using ADO or a append query, into a MS SQL Server 7 table,  where the data type is formatted as BIT.

Anyone know of the conversion or formatting code to do this?

I know how to move it, I just need to convert the data before or as I move it.

I tried CBool and CByte but got data type conversion errors each time..

Answer : Convert Access String to SQL Server BIT Data Type

If you have linked the tables into access they will appear as -1 for True and 0 for False. These are Access' version of boolean numeric values.

A common, general test for true and false is
False: Field = 0
True: Field <> 0

Because of the above version differences. I think it shold be possible to register any number except 0 into the field and get True values in return, not 100% sure though.
Random Solutions  
 
programming4us programming4us