Solved

How to make a MS Access field 'Allow Zero Length' = true

Posted on 2004-09-10
6
341 Views
Last Modified: 2010-04-05
How to make a MS Access field 'Allow Zero Length' = true from delphi
in CREATE database dunction?
0
Comment
Question by:djuzoran
  • 3
  • 2
6 Comments
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12025222
You mean a Text field?
If you do not specify nothing it is intended as it can accept zero length, otherwise it must be declared as Not Null

for example:

create table MyTable(MyField Text(10), //accept zero length
                               MySecondField(19) not null, //value is required
                               MyThirdField Integer);

0
 

Author Comment

by:djuzoran
ID: 12025233
So
MyField Text(10)

is not the same as

MyField Varchar(10) ?

0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12025267
Yes it's the same, btw forgot mi last comment, it's about required property, not zero length, sorry
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:djuzoran
ID: 12025293
So what should i write for nullable and zero length column?

0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 125 total points
ID: 12025329
0
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 12025346
Well i was looking at it at all but look at here also http://support.microsoft.com/default.aspx?scid=kb%3BEN-US%3BQ217156
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question