dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual Basic
Expertise: Advanced
Apr 27, 2000

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Undocumented Boolean Field Constant

Consider the Data Definition Language statements: "ALTER TABLE [My Table] ADD COLUMN [My New Field] Single" and "ALTER TABLE [My Table] ADD COLUMN [My New Field] Double". According to Microsoft documentation, Double and Single are correct constants for field types dbDouble and dbSingle. Boolean is also indicated as the Type property for dbBoolean, yet "ALTER TABLE [My Table] ADD COLUMN [My New Field] Boolean" doesn't work. Why?

Further reading about the Boolean datatype in the DAO documentation declares that Boolean is "A True/False or yes/no value. Boolean values are usually stored in Bit fields in a Microsoft Jet database; however, some databases don't support this datatype directly." "ALTER TABLE [My Table] ADD COLUMN [My New Field] Bit" works. Ironically, nothing is listed in the table of Type properties for dbBit or Bit itself.
Al Meadows
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date