Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: how to insert a yes/no type value?


Message #1 by kfeng@m... on Thu, 6 Dec 2001 17:41:58
Hi, all:

This sees a simple question because its all about is yes or no. However, I 

have truggled for days with it.

In my Access table I have a yes/no field. I am trying to insert a value 

with an asp page. My problem is what do I states that value? I tried 1/0, 

yes/no, true/false, with and without ', [], #... quoted, anyway, it does 

not work. Does anybody have this experience before? I appreciate your help!

By the way, what if I am using Oracel, SQL server, I guess it will bug me 

again.



kun 

Message #2 by "Ken Schaefer" <ken@a...> on Fri, 7 Dec 2001 13:52:04 +1100
INSERT INTO Table1 (YesNoField) VALUES (True)



-or-



INSERT INTO Table1 (YesNoField) VALUES (-1)



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: <kfeng@m...>

Subject: [access_asp] how to insert a yes/no type value?





: Hi, all:

: This sees a simple question because its all about is yes or no. However, I

: have truggled for days with it.

: In my Access table I have a yes/no field. I am trying to insert a value

: with an asp page. My problem is what do I states that value? I tried 1/0,

: yes/no, true/false, with and without ', [], #... quoted, anyway, it does

: not work. Does anybody have this experience before? I appreciate your

help!

: By the way, what if I am using Oracel, SQL server, I guess it will bug me

: again.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




  Return to Index