Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change datatype to BIT yes/no 1

Status
Not open for further replies.

jmodo

Programmer
Aug 2, 2006
43
US
I am trying to change the datatype of a column to yes/no. All I can find is the change to BIT(ALTER TABLE t column c BIT;), is there a yes/no property to add on. I can't find anything.


Thanks,
-J
 
The type in Access is YesNo:

alter table t alter column c yesno
 
That's all you should need to do. Existing values will be converted to 0 (False) or -1 (True).

If you're trying to change the column format to "Yes/No" then you will need to look at the properties collection of a Field object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top